rjsf-team/react-jsonschema-form

Most recent JSON Schema version is not supported

Open

#3.750 geöffnet am 30. Juni 2023

Auf GitHub ansehen
 (5 Kommentare) (1 Reaktion) (0 zugewiesene Personen)TypeScript (2.136 Forks)batch import
bugdocshelp wanted

Repository-Metriken

Stars
 (13.175 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 3T 17h) (32 gemergte PRs in 30 T)

Beschreibung

Prerequisites

What theme are you using?

core

Version

5.x

Current Behavior

As I understand it - The $schema keyword is used to point to a JSON Schema that describes the shape of a valid JSON schema itself.

The most recent version of the JSON Schema spec is 2020-12 https://json-schema.org/specification.html

If we try use a schema with

  "$schema": "https://json-schema.org/draft/2020-12/schema",

RSJF will show a validation error:

no schema with key or ref "https://json-schema.org/draft/2020-12/schema"

Expected Behavior

The most recent version of JSON schema should be supported.

Steps To Reproduce

  1. Navigate to: https://rjsf-team.github.io/react-jsonschema-form/
  2. Paste "$schema": "https://json-schema.org/draft/2020-12/schema", into the top level of the schema
  3. Submit the form
  4. Observe the validation error

Environment

Sandbox

Anything else?

No response

Contributor Guide