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
JSONSchema oneOf properties with initial values #2195
Comments
The following PR #2196 improves the select |
|
This issue has been fixed and released as part of v5.6.0 release. Please let us know, in case you are still encountering a similar issue/problem. |
Description
When the editor with a JSONSchema oneOf property is loaded with an initial model, the wrong option is selected.
Minimal Reproduction
In this example, the model value correspond to only one option: the second. But the editor select the first option.
https://stackblitz.com/edit/angular-157bka?file=src%2Fassets%2Fjson-schema%2FoneOf.json
Your Environment
Additional context
This is probably due to the fact that the two oneOf options have the same
name
property. This is probably not easy to solve as theadditionalProperties
should be checked.The text was updated successfully, but these errors were encountered: