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

fix(core): Property with default #6783

Merged
merged 1 commit into from
Jan 16, 2025
Merged

Conversation

loicmathieu
Copy link
Member

Fixes #6744

When a node in the JSONSchema contains a oneOf, it will check on all oneOf node if there is a default and pull it from there to the parent node so the parent also contains a default.

This is a hack to work around a limitation in the Monaco Editor which didn't take into account the default from the oneOf.

@loicmathieu loicmathieu force-pushed the fix/property-with-default branch from 1ed5063 to 7789920 Compare January 16, 2025 08:51
@loicmathieu loicmathieu merged commit b2c4119 into develop Jan 16, 2025
11 checks passed
@loicmathieu loicmathieu deleted the fix/property-with-default branch January 16, 2025 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Plugin property v2 with default are invalid in editor and not displayed on the documentation
1 participant