Skip to content

Most recent JSON Schema version is not supported #3750

Open
@dwjohnston

Description

@dwjohnston

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions