Skip to content
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

feat: Adding support to parse discriminator field in ObjectSchema #138

Merged
merged 9 commits into from
Dec 29, 2024

Conversation

vgerber
Copy link
Contributor

@vgerber vgerber commented Dec 8, 2024

Closes #131
Specification https://spec.openapis.org/oas/v3.1.0#discriminator-object

Might be labeled as fix as well (e.g. fix discriminator field not parsed).

Comment on lines 651 to 653
mapping:
dog: '#/components/schemas/Dog'
monster: 'https://gigantic-server.com/schemas/Monster/schema.json'
Copy link
Member

Choose a reason for hiding this comment

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

indentation incorrect and not caught by test due to lacking assertions on content

Copy link
Member

@robjtede robjtede left a comment

Choose a reason for hiding this comment

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

nice work, thanks 👍🏻

@robjtede robjtede merged commit 7d9a0d5 into x52dev:main Dec 29, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add discriminator object on ObjectSchema
2 participants