react-json-form icon indicating copy to clipboard operation
react-json-form copied to clipboard

Using both integer and boolean types together inside oneOf doesn't work as expected

Open oOhyeahh opened this issue 1 year ago • 1 comments

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.

oOhyeahh avatar Jul 17 '23 03:07 oOhyeahh