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

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

Open nickgros opened this issue 7 months ago • 0 comments

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

nickgros avatar Apr 21 '25 18:04 nickgros