Skip to content

Fix for #6984 #7169

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

Merged
merged 1 commit into from
Jan 30, 2020
Merged

Fix for #6984 #7169

merged 1 commit into from
Jan 30, 2020

Conversation

Kentalot
Copy link
Contributor

Update openapi.py to include a type of object to anything that requires 'properties' during schema generation (_map_serializer method). Also, fix unit tests.

Note: Before submitting this pull request, please review our contributing guidelines.

Description

This fixesrefs #7168 in the description of the pull request.

…es 'properties' during schema generation (_map_serializer method). Also, fix unit tests.
@Kentalot
Copy link
Contributor Author

@carltongibson I think you handle openapi schema PRs?

@Kentalot
Copy link
Contributor Author

More info: OpenApi Spec Though it doesn't state that this is required (it doesn't say what's required), every example has the type property for objects.

Also, I tested this change locally and confirmed that it fixes the openapi spec and the codegen/compilation of C# sdk.

Copy link
Collaborator

@carltongibson carltongibson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Kentalot. Thanks yes, this seems correct. Good catch.

@carltongibson carltongibson merged commit 79d37bc into encode:master Jan 30, 2020
pchiquet pushed a commit to pchiquet/django-rest-framework that referenced this pull request Nov 17, 2020
sigvef pushed a commit to sigvef/django-rest-framework that referenced this pull request Dec 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants