-
Notifications
You must be signed in to change notification settings - Fork 556
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
Bad selection of the oneOf on load. #3245
Labels
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry I've answered on the wrong issue |
aitboudad
added a commit
to aitboudad/ngx-formly
that referenced
this issue
Mar 30, 2022
aitboudad
added a commit
that referenced
this issue
Mar 30, 2022
This issue has been fixed and released as part of v5.12.0 release. Please note that passing
{
type: 'object',
properties: {
foo: {
oneOf: [
{ type: 'object' },
{ type: 'array' }
],
}
}
}
{
type: 'object',
oneOf: [
{ properties: { foo: { type: 'object' } } },
{ properties: { foo: { type: 'array' } } },
],
} Thank you! |
This was referenced Apr 11, 2022
Closed
This was referenced Apr 28, 2022
Closed
This was referenced Jul 19, 2022
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When a oneOf JSONSchema contains an array with a "minItems" property the form is not able to select the right option.
Minimal Reproduction
Go to: https://stackblitz.com/edit/angular-yne8as?file=src/assets/json-schema/oneOf.json
The selection option1 is selected instead of option2. Remove the "minItems" property and the option2 is selected.
Your Environment
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: