You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@DharamveerYadav The validator implementation, AJV, just looks at your form data and it has no idea that you picked option 2, so it validates against option 1. You could refactor your schema to make your form data include the option type using conditionals or a discriminator. You can find some more information in #4252, where another person had the same issue.
Prerequisites
What theme are you using?
core
Version
5.x
Current Behavior
Using sample JSON for oneOf given on RJSF playground,
I have just inserted maxLength attribute to both of the properties to validate the max length.
validation message thrown is:
Expected Behavior
It should throw only : "must NOT have more than 50 characters".
Should not throw : "must match exactly one schema in oneOf".
Steps To Reproduce
try above mentioned JSON schema on rjsf playground and validate the form
Environment
Anything else?
(https://rjsf-team.github.io/react-jsonschema-form/)
The text was updated successfully, but these errors were encountered: