Skip to content

Commit b5290df

Browse files
committed
Have the "schema" meta-schema extend core
1 parent 28a8d1b commit b5290df

File tree

2 files changed

+5
-30
lines changed

2 files changed

+5
-30
lines changed

core.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
"format": "uri-reference"
2727
},
2828
"$recursiveAnchor": {
29-
"type": "boolean"
29+
"type": "boolean",
30+
"const": true,
31+
"default": false
3032
},
3133
"$vocabulary": {
3234
"type": "object",

schema.json

+2-29
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
"$schema": "http://json-schema.org/draft-08/schema#",
33
"$id": "http://json-schema.org/draft-08/schema#",
44
"$recursiveAnchor": true,
5+
"$recursiveRef": "core",
56

6-
"title": "Core schema meta-schema",
7+
"title": "Core and Validation specifications meta-schema",
78
"$defs": {
89
"schemaArray": {
910
"type": "array",
@@ -38,34 +39,6 @@
3839
},
3940
"type": ["object", "boolean"],
4041
"properties": {
41-
"$id": {
42-
"type": "string",
43-
"format": "uri-reference"
44-
},
45-
"$schema": {
46-
"type": "string",
47-
"format": "uri"
48-
},
49-
"$ref": {
50-
"type": "string",
51-
"format": "uri-reference"
52-
},
53-
"$recursiveRef": {
54-
"type": "string",
55-
"format": "uri-reference"
56-
},
57-
"$recursiveAnchor": {
58-
"const": true,
59-
"default": false
60-
},
61-
"$comment": {
62-
"type": "string"
63-
},
64-
"$defs": {
65-
"type": "object",
66-
"additionalProperties": { "$recursiveRef": "#" },
67-
"default": {}
68-
},
6942
"definitions": {
7043
"$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.",
7144
"type": "object",

0 commit comments

Comments
 (0)