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

Search node schema in all possible sub schemas #1297

Merged

Conversation

maufl
Copy link
Contributor

@maufl maufl commented Apr 11, 2021

Currently, Node._findSchema looks either in the root schema or one of oneOf, anyOf or allOf sub schemas. The correct behavior would be to look in all of them.

This should fix #1282

@josdejong
Copy link
Owner

Thanks a lot Felix, this fix makes sense.

Can you please run npm run lint -- --fix to fix the linting issues?

@maufl
Copy link
Contributor Author

maufl commented Apr 17, 2021

Done :)

@josdejong
Copy link
Owner

That's quick 💪 , thanks!

@josdejong josdejong merged commit fd948ff into josdejong:develop Apr 17, 2021
@josdejong
Copy link
Owner

Fix is now published in v9.4.0. Thanks again

@shenenya
Copy link

Great work. But I found the current version failed in some case. Please refer to #1389

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.

JSON schema enum dropdown not working for conditionals like oneOf, anyOf, allOf
3 participants