Open
Description
ref #511
JSON Schema 2019-09
https://json-schema.org/draft/2019-09/release-notes.html
"$schema": "https://json-schema.org/draft/2019-09/schema"
New Features
$anchor
: Replaces the#plain-name
form of$id
, with a different syntax and approach$id
: Only URI-references without fragments are allowed; see $anchor for a replacement for plain-name fragments; all other fragments in $id had undefined behavior previously$recursiveAnchor
and$recursiveRef
: Used for extending recursive schemas such as meta-schemas$ref
: Other keywords are now allowed alongside of itunevaluatedItems
: Similar toadditionalItems
, but can “see” into subschemas and across referencesunevaluatedProperties
: Similar toadditionalProperties
, but can “see” into subschemas and across references
New Properties
$defs
: renamed from definitions$vocabulary
: Has effects only in meta-schemasdependentSchemas
anddependentRequired
: split from dependenciesmaxContains
andminContains
: Assertion for controlling how many times a subschemadeprecated
: Used to indicate that a field is deprecated in some application-specific mannerconst
: It is similar toenum
, but has only one value
JSON Schema 2020-12
https://json-schema.org/draft/2020-12/release-notes.html
"$schema": "https://json-schema.org/draft/2020-12"
New Features
$dynamicRef
and$dynamicAnchor
: The$recursiveRef
and$recursiveAnchor
keywords were replaced by the more powerful$dynamicRef
and$dynamicAnchor
keywords.- Support Embedded Schemas and Bundling
New Properties
prefixItems
: replace fromitems
items
: replace fromadditionalItems