Option to generate OpenAPI schema from docstring if verbose_name not defined #8309
Unanswered
Adrian-at-CrimsonAzure
asked this question in
Ideas & Suggestions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would love if DRF had the ability to pull docstrings for field labels on API OPTIONS. Say I have the following example model:
That would make the corresponding OPTIONS for the
/api/users
endpoint:Our model documentation is pretty comprehensive, it would be a shame to have to duplicate all of that into the verbose_name field or something.
Beta Was this translation helpful? Give feedback.
All reactions