rjsf-team/react-jsonschema-form

Most recent JSON Schema version is not supported

Open

#3750 aperta il 30 giu 2023

Vedi su GitHub
 (5 commenti) (1 reazione) (0 assegnatari)TypeScript (2136 fork)batch import
bugdocshelp wanted

Metriche repository

Star
 (13.175 star)
Metriche merge PR
 (Merge medio 3g 17h) (32 PR mergiate in 30 g)

Descrizione

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

Guida contributor