We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
core
5.x
Using sample JSON for oneOf given on RJSF playground,
{ "type": "object", "oneOf": [ { "properties": { "lorem": { "type": "string", "maxLength": 50 } }, "required": [ "lorem" ] }, { "properties": { "ipsum": { "type": "string", "maxLength": 50 } }, "required": [ "ipsum" ] } ] }
I have just inserted maxLength attribute to both of the properties to validate the max length.
validation message thrown is:
It should throw only : "must NOT have more than 50 characters".
Should not throw : "must match exactly one schema in oneOf".
try above mentioned JSON schema on rjsf playground and validate the form
- OS: - Node: - npm:
(https://rjsf-team.github.io/react-jsonschema-form/)
The text was updated successfully, but these errors were encountered:
Any update on this
Sorry, something went wrong.
No branches or pull requests
Prerequisites
What theme are you using?
core
Version
5.x
Current Behavior
Using sample JSON for oneOf given on RJSF playground,
{
"type": "object",
"oneOf": [
{
"properties": {
"lorem": {
"type": "string",
"maxLength": 50
}
},
"required": [
"lorem"
]
},
{
"properties": {
"ipsum": {
"type": "string",
"maxLength": 50
}
},
"required": [
"ipsum"
]
}
]
}
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: