-
Notifications
You must be signed in to change notification settings - Fork 273
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
Object support in response #1
Comments
Hi @MissiaL Regarging your example: The generator can't really know whats going on inside the method body unless you tell it. In easy cases you could use type hinting like with the I will introduce a decorator for giving out non trivial types likes Serializer outputs. good catch! |
@extend_schema_field accepts Serializers and OpenApiTypes
let me know if that works for you. |
It works well. Thanks! |
Hi
Thanks for this cool project.
I have a problem with the response scheme
I would like to see the support of the object in the answer. I will show the code, I hope you will understand what I want to see
When I generate the schema, then

author
filed is string, but should be Author objectLike this
Is there any way to solve this problem?
The text was updated successfully, but these errors were encountered: