-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
any-one-all-ofRelated to fixing anyOf, oneOf or allOfRelated to fixing anyOf, oneOf or allOfbughelp wanted
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
We can define an enum with oneOf
:
{
"oneOf": [
{
"const": "empty",
"title": ""
},
{
"const": "active"
}
]
}
But if the title is an empty string, the const
value is used.
Expected Behavior
The empty string option is used instead of falling back to the const value.
Steps To Reproduce
Environment
No response
Anything else?
No response
Metadata
Metadata
Assignees
Labels
any-one-all-ofRelated to fixing anyOf, oneOf or allOfRelated to fixing anyOf, oneOf or allOfbughelp wanted