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

Resolve oneOf discriminator references #34

Merged
merged 5 commits into from
Jan 22, 2024
Merged

Resolve oneOf discriminator references #34

merged 5 commits into from
Jan 22, 2024

Conversation

glopesdev
Copy link
Member

This PR ensures that oneOf inheritance is resolved into allOf inheritance both for inline and reference schemas. Unit tests were refactored to test a wider range of discriminator patterns, including both single property and collections. Type name hinting was expanded to include more reasonable fallbacks for collections.

Fixes #33

@glopesdev glopesdev added the fix Pull request that fixes an issue label Jan 21, 2024
@glopesdev glopesdev merged commit c099340 into main Jan 22, 2024
2 checks passed
@glopesdev glopesdev deleted the discriminator-dev branch January 22, 2024 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Pull request that fixes an issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Discriminated Union fails to be detected and rendered
1 participant