Skip to content

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

@oOhyeahh

Description

@oOhyeahh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions