JSON-SCHEMA-2020-12
JSON Schema draft 2020-12 web standard.
Definition
JSON Schema 2020-12 (published December 2020 by IETF) is a stable draft of the JSON schema description language. Brings $dynamicRef / $dynamicAnchor for polymorphism, unevaluatedProperties, cleaned-up if/then/else keywords. Aligned with OpenAPI 3.1, used by AJV (Node), python-jsonschema, jsonschema-rs (Rust).
Origin
JSON Schema initiated 2009 by Kris Zyp, successive IETF drafts (draft-04 to draft-07, 2019-09, 2020-12).
Example in context
{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"invoiceId":{"type":"string","pattern":"^INV-"}}, "required":["invoiceId"]}
Related terms
- JSON Schema — general concept.
- OpenAPI 3.1 — standard aligned with it.