rjsf-team/react-jsonschema-form

Most recent JSON Schema version is not supported

Open

#3,750 opened on Jun 30, 2023

View on GitHub
 (5 comments) (1 reaction) (0 assignees)TypeScript (2,136 forks)batch import
bugdocshelp wanted

Repository metrics

Stars
 (13,175 stars)
PR merge metrics
 (Avg merge 3d 3h) (42 merged PRs in 30d)

Description

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