rjsf-team/react-jsonschema-form

Most recent JSON Schema version is not supported

Open

#3,750 创建于 2023年6月30日

在 GitHub 查看
 (5 评论) (1 反应) (0 负责人)TypeScript (13,175 star) (2,136 fork)batch import
bugdocshelp wanted

描述

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

贡献者指南