| title | Draft 2020-12 | ||||
|---|---|---|---|---|---|
| Published | 16 June 2022 | ||||
| type | docs | ||||
| authors |
|
||||
| Metaschema | https://json-schema.org/draft/2020-12/schema | ||||
| Specification | https://json-schema.org/draft/2020-12/json-schema-core.html | ||||
| prev |
|
||||
| next |
|
The JSON Schema Draft 2020-12 is a comprehensive update to the previous draft 2019-09, addressing feedback and implementation experiences. This draft introduces features to simplify creating and validating JSON schemas.
Here's an overview of updates to Draft 2020-12;
- Redesigned Array and Tuple Keywords: The
itemsandadditionalItemskeywords have been replaced byprefixItemsanditems. - Dynamic References: The introduction of
$dynamicRefand$dynamicAnchorreplaces the older$recursiveRefand$recursiveAnchor. - Contains and UnevaluatedItems: Specifies how the
containskeyword affects theunevaluatedItemskeyword. - Regular Expressions: Now expected to support Unicode characters, addressing inconsistencies in previous drafts.
- Media Type Changes: Drops the schema media type parameter.
- Embedded Schemas and Bundling: Provides guidance on bundling schemas into a Compound Schema Document.
- Vocabulary Changes: Separates the
formatvocabulary intoformat-annotationandformat-assertion.
- Specifications
- Core: draft-bhutton-json-schema-01 (changes)
- Validation: draft-bhutton-json-schema-validation-01 (changes)
- Relative JSON Pointer: draft-bhutton-relative-json-pointer-00 (changes)
- Published: 16-June-2022
- General use meta-schemas
- JSON Schema meta-schema
- JSON Hyper-Schema meta-schema (2019-09 Hyper-Schema with 2020-12 Validation)
- JSON Hyper-Schema Link Description Object meta-schema
- Individual vocabulary meta-schemas
- Output schemas
- Output examples
These were updated without changing functionality or meta-schemas due to a few errors and unclear sections.
- Core: draft-bhutton-json-schema-00 (changes)
- Validation: draft-bhutton-json-schema-validation-00 (changes)