rjsf-team/react-jsonschema-form

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

Open

#4,574 opened on 2025年4月21日

GitHub で見る
 (0 comments) (0 reactions) (0 assignees)TypeScript (2,136 forks)batch import
any-one-all-ofbughelp wanted

Repository metrics

Stars
 (13,175 stars)
PR merge metrics
 (平均マージ 3d 17h) (30d で 32 merged PRs)

説明

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

コントリビューターガイド