Skip to content

Support JSON Schema Draft 2020-12  #596

Closed as not planned
Closed as not planned
@magicmatatjahu

Description

@magicmatatjahu

Currently in the 2.1.0 version of spec, we support only JSON Schema in the version of draft 07. There are some changes (including breaking changes) between draft 07 -> draft 2019-09 -> draft 2020-12, especially with core keywords:

  • dependencies are split to dependentSchemas and dependentRequired - as I read dependencies has still backward compatibility
  • added deprecated keyword - similar to our deprecated
  • added new predefined formats
  • added unevaluatedItems and unevaluatedProperties keywords - similar to additional*, but they can "see" into subschemas and across references
  • added local/dynamic anchors
  • added minContains, maxContains
  • definitions -> $def (definitions has still backward compatibility)
  • in the $ref other keywords are now allowed alongside of it
  • ... other thing related to the vocabularies and meta schemas

You can read all changes in:

Due to the fact that JSON Schema itself has breaking change and it's treated by us as a base for our Schema Object, so the specification itself will have breaking change when we start supporting the latest drafts.

The issue itself is like question: When will we start supporting this? O maybe someone have an opinion that we shouldn't support this at all in the near future? Or if yes, when? In 3.0.0 or 4.0.0?

We must also remember about adjusting the JSON Schema for spec to the Draft 2020-12.

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