Skip to content

Unexpected behavior during oneOf/anyOf option select #181

@perrotuerto

Description

@perrotuerto

Hi, I am wondering if I am doing something wrong. I have this valid JSON Schema:

{
  "2": {
    "type": "object",
    "properties": {
      "corpus": {
        "type": "string",
        "default": "Corpus Test",
        "readonly": true
      },
      "Tipos textuales": {
        "type": "object",
        "systype": {
          "const": "object",
          "widget": "hidden"
        },
        "title": "Tipos textuales",
        "keys": {
          "items": {
            "title": "Ítems",
            "type": "list",
            "items": {
              "anyOf": [
                {
                  "type": "string",
                  "systype": {
                    "const": "string_choices",
                    "widget": "hidden"
                  },
                  "title": "Lengua escrita",
                  "default": "",
                  "required": null,
                  "choices": [
                    "A",
                    "B"
                  ]
                },
                {
                  "type": "string",
                  "systype": {
                    "const": "string_choices",
                    "widget": "hidden"
                  },
                  "title": "Lengua tecleada",
                  "default": "",
                  "required": null,
                  "choices": [
                    "C",
                    "D"
                  ]
                }
              ]
            }
          }
        }
      }
    }
  }
}

But when I try to select an item, I get this behavior:

Image

I check the documentation and I couldn't find where I am missing something. Thanks in advance!

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