rjsf-team/react-jsonschema-form

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

開放

#4,574 建立於 2025年4月21日

 (0 則留言) (0 個反應) (0 位負責人)TypeScript (2,136 個分叉)batch import
any-one-all-ofbughelp wanted

倉庫指標

星標
 (13,175 顆星)
PR 合併指標
 (平均合併 3天 17小時) (30 天內合併 32 個 PR)

描述

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

貢獻者指南