rjsf-team/react-jsonschema-form

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

Open

#4 574 ouverte le 21 avr. 2025

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)TypeScript (2 136 forks)batch import
any-one-all-ofbughelp wanted

Métriques du dépôt

Stars
 (13 175 stars)
Métriques de merge PR
 (Merge moyen 3j 17h) (32 PRs mergées en 30 j)

Description

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

Guide contributeur