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

Fixed an issue where allOf schemas with both having enum were not resolved correctly. #778

Merged
merged 2 commits into from Jan 12, 2024

Conversation

VShingala
Copy link
Member

Overview

Fixes: #417 (comment)

This PR solves issue, where in some cases while resolving/merging the allOf schema, the underlying library json-schema-merge-allof was throwing error when enums were present in both schemas.

With this PR, we're adding custom resolver for enum cases which will keep all unique enums from both schemas as result of resolve/merge.

@VShingala VShingala merged commit 2b06ebd into develop Jan 12, 2024
6 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.

Error while resolving allof schema: very confusing
2 participants