Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Mar 18, 2019. It is now read-only.
This repository was archived by the owner on Mar 18, 2019. It is now read-only.

Support for verbose_name/label #49

Copy link
Copy link
@danizen

Description

@danizen
Issue body actions

OpenAPI supports a title attribute on a field/parameter, and this is used in react-jsonschema-form to build a form label based on a schema. I am able to use the schema generated from DRF using my own OpenAPIRenderer nearly identical to that in django-rest-swagger, but the generated OpenAPI schema is missing that title field, which will be important to achieving my objectives.

At the same time, the title/label is not represented in CoreAPI, but is returned by DRF in that packages rest_framework.metadata.SimpleMetadata.

This therefore seems related to the last comment of #41, where a user suggests going to the DRF serializer to fix the problem. This is surely a bit of a hack - it works for a default represented in coreapi, but if a title or label is not represented, then one has a problem.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.