Skip to content

Commit dda83f9

Browse files
committed
Add deprecated definitions to 2020-12 meta-schema
1 parent 8338d1b commit dda83f9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

draft-2019-09/schema.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ export default {
2626
"$comment": "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",
2727
"type": "object",
2828
"additionalProperties": { "$recursiveRef": "#" },
29-
"default": {}
29+
"default": {},
30+
"deprecated": true,
31+
"x-deprecationMessage": "Use '$defs'. 'definitions' was replaced with '$defs' in 2019-09"
3032
},
3133
"dependencies": {
3234
"$comment": "\"dependencies\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \"dependentSchemas\" and \"dependentRequired\"",

draft-2020-12/schema.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ export default {
2828
"$comment": "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",
2929
"type": "object",
3030
"additionalProperties": { "$dynamicRef": "#meta" },
31-
"default": {}
31+
"default": {},
32+
"deprecated": true,
33+
"x-deprecationMessage": "Use '$defs'. 'definitions' was replaced with '$defs' in 2019-09"
3234
},
3335
"dependencies": {
3436
"$comment": "\"dependencies\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \"dependentSchemas\" and \"dependentRequired\"",

0 commit comments

Comments
 (0)