rjsf-team/react-jsonschema-form
View on GitHubValidation-only logic applied via `oneOf`/`anyOf` should not try to render fields
Open
#4,574 opened on Apr 21, 2025
any-one-all-ofbughelp wanted
Repository metrics
- Stars
- (13,175 stars)
- PR merge metrics
- (Avg merge 3d 3h) (42 merged PRs in 30d)
Description
Prerequisites
- I have searched the existing issues
- I understand that providing a SSCCE example is tremendously useful to the maintainers.
- I have read the documentation
- Ideally, I'm providing a sample JSFiddle, Codesandbox.io or preferably a shared playground link demonstrating the issue.
What theme are you using?
core
Version
5.x
Current Behavior
The spec has the following schema as an example:
{
"oneOf": [
{
"type": "number",
"multipleOf": 5
},
{
"type": "number",
"multipleOf": 3
}
]
}
The following is rendered:
Expected Behavior
Only one field is rendered
Steps To Reproduce
No response
Environment
Anything else?
No response