Skip to content
This repository has been archived by the owner on Mar 18, 2019. It is now read-only.

Support for verbose_name/label #49

Open
danizen opened this issue Aug 30, 2017 · 0 comments
Open

Support for verbose_name/label #49

danizen opened this issue Aug 30, 2017 · 0 comments

Comments

@danizen
Copy link

danizen commented Aug 30, 2017

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant