Skip to content
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

@danizen

Description

@danizen

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.

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