JSON Schema Draft 4 vs Draft 7 vs 2020-12: What Changed
JSON Schema Draft 4 vs Draft 7 vs 2020-12: key differences in vocabulary, $id, $ref behavior, unevaluatedProperties, and migration guidance.
Published:
Tags: json, developer-tools, advanced
JSON Schema Draft 4 vs Draft 7 vs 2020-12: What Changed JSON Schema has gone through multiple drafts, and the version supported by your validator determines which keywords you can use. AWS API Gateway, OpenAPI 2.x, and many older tools default to Draft 4. Draft 7 is the most widely supported "modern" draft. The 2020-12 specification introduced breaking changes that affect how interacts with other keywords and how tuples are defined. Understanding what each draft added — and what broke between them — saves hours of debugging schema validation failures. JSON Schema specification has evolved through 7 major drafts since 2011, with draft 2020-12 being the current standard. What is draft 4 — the baseline everyone supports? Draft 4 (published 2013) is the oldest version still in widespread…
All articles · theproductguy.in