Specification
Draft 2020-12
| Specification | https://json-schema.org/draft/2020-12/json-schema-core.html |
| Published | 16 June 2022 |
| Authors | Austin Wright Henry Andrews Ben Hutton Greg Dennis |
| Metaschema | https://json-schema.org/draft/2020-12/schema |
Introduction
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.
Draft 2020-12 Documents
- 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
Obsolete Draft 2020-12 Documents
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)
Release Notes
Need Help?
Did you find these docs helpful?
Help us make our docs great!
At JSON Schema, we value docs contributions as much as every other type of contribution!
Still Need Help?
Learning JSON Schema is often confusing, but don't worry, we are here to help!.