-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Fix nested serializer schema rendering #6568
Fix nested serializer schema rendering #6568
Conversation
* Wrap requestBody contents in JSON schemas * Update unit test * Wrap response schemas in a schema object
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Lucidiot. Would you be able to add a small test example for this case? (Just to help us build the coverage and make sure we avoid a regression later.)
@carltongibson Yup, I pushed a test case! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great. Thanks.
e61af55
to
bb0db35
Compare
PR on top of #6532 (OpenAPI generation) by @carltongibson
This fixes a bug with nested serializers where the
properties
andrequired
properties of the nested Schema object would be nested in aproperties
property for no reason.This bug was noticed after rendering the ReDoc API docs using
apistar
, as the docs were showing strange properties inside response samples.