react-json-form
react-json-form copied to clipboard
Using both integer and boolean types together inside oneOf doesn't work as expected
I have this following schema
{
"type": "object",
"properties": {
"secret_code": {
"oneOf": [
{
"type": "integer",
"title": "Numeric value"
},
{
"type": "string",
"title": "String value"
},
{
"type": "boolean",
"title": "boolean value"
},
{
"type": "list",
"title": "list value",
"items": {
"type": "string"
}
}
]
}
}
}
When I copy the schema and try to select boolean value
in the playground. It doesn't allow me to select. It changes to numeric value. However, when I remove one of the options from the list, it works perfectly fine.