-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a way to document model attributes with description, examples, etc. #453
Comments
@sNok3 please share the example of your code and resulting docs. Also would be great to understand what your expected |
@sNok3 ooh, gotcha. So basically you want to annotate the model fields with descriptions and examples? Currently this is not supported. You can use API resources and there you can add the descriptions. However, I'll keep this issue open to add this possibility in future. |
Yeah, that is exactly what I needed. However, using API resources in the controller method isn't really my way to go for now since I have a big codebase. However, I'll gladly wait for this to get implemented! |
As the title suggests, when generating the docs for a controller which has model binding, the schema for the model will result in just the fields that the model has, without the annotations it has.
The text was updated successfully, but these errors were encountered: