-
Notifications
You must be signed in to change notification settings - Fork 272
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
Response Description #272
Comments
the key question here is: how and where should it be added? it isn't clear to me. we use |
I found that is is possible to add an example (examples= [OpenApiExample...) with a description and linked it to a specific status_codes. So that was enough for me. For a simple error description it can be helpful like you said to be able to do it. |
sounds good! i'll close this because you found a way, and we may have a more structured approach once the error feature is implemented (#101) |
drf-spectacular/drf_spectacular/openapi.py
Line 1006 in f23de89
Can we still add a custom description for a Response?
I tried and it is displayed in the schema of the response and not in the main Response description.
The text was updated successfully, but these errors were encountered: