Skip to content

Validation-only logic applied via oneOf/anyOf should not try to render fields #4574

@nickgros

Description

@nickgros

Prerequisites

What theme are you using?

core

Version

5.x

Current Behavior

The spec has the following schema as an example:

{
  "oneOf": [
    {
      "type": "number",
      "multipleOf": 5
    },
    {
      "type": "number",
      "multipleOf": 3
    }
  ]
}

The following is rendered:

Image

Playground Link

Expected Behavior

Only one field is rendered

Steps To Reproduce

No response

Environment

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions