-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Multiple types does not work #700
Comments
I think you're looking for oneOf instead of type. it would look like {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
},
]
} |
Isn't oneOf, allOf and anyOf still unsupported in react-jsonschema-form? In any case, the Json Schema specifications says type can be an array of strings and not just one type. I was just wondering if the error message I experienced was a bug or if the type array feature is not supported yet. |
That's correct, neither |
Description
Array in types does not work
From doc: The value of this keyword MUST be either a string or an array. If it is an array, elements of the array MUST be strings and MUST be unique.
Steps to Reproduce
Schema:
Actual behavior
Version
react-jsonschema-form 0.50.1
The text was updated successfully, but these errors were encountered: