Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7675124

Browse files
committed
Update meta-schemas for $dynamic*
Replace $recursiveAnchor: true with $dynamicAnchor: "meta" and update $recursiveRef to $dynamicRef accordingly.
1 parent cf3c17c commit 7675124

File tree

10 files changed

+33
-32
lines changed

10 files changed

+33
-32
lines changed

‎hyper-schema.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"https://json-schema.org/draft/2019-09/vocab/content": true,
1111
"https://json-schema.org/draft/2019-09/vocab/hyper-schema": true
1212
},
13-
"$recursiveAnchor": true,
13+
"$dynamicAnchor": "meta",
1414

1515
"title": "JSON Hyper-Schema",
1616
"allOf": [

‎links.json‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"$schema": "https://json-schema.org/draft/2019-09/hyper-schema",
33
"$id": "https://json-schema.org/draft/2019-09/links",
44
"title": "Link Description Object",
5+
56
"allOf": [
67
{ "required": [ "rel", "href" ] },
78
{ "$ref": "#/$defs/noRequiredFields" }
@@ -36,7 +37,7 @@
3637
"format": "uri-template"
3738
},
3839
"hrefSchema": {
39-
"$recursiveRef": "https://json-schema.org/draft/2019-09/hyper-schema",
40+
"$dynamicRef": "https://json-schema.org/draft/2019-09/hyper-schema#meta",
4041
"default": false
4142
},
4243
"templatePointers": {
@@ -63,23 +64,23 @@
6364
"type": "string"
6465
},
6566
"targetSchema": {
66-
"$recursiveRef": "https://json-schema.org/draft/2019-09/hyper-schema",
67+
"$dynamicRef": "https://json-schema.org/draft/2019-09/hyper-schema#meta",
6768
"default": true
6869
},
6970
"targetMediaType": {
7071
"type": "string"
7172
},
7273
"targetHints": { },
7374
"headerSchema": {
74-
"$recursiveRef": "https://json-schema.org/draft/2019-09/hyper-schema",
75+
"$dynamicRef": "https://json-schema.org/draft/2019-09/hyper-schema#meta",
7576
"default": true
7677
},
7778
"submissionMediaType": {
7879
"type": "string",
7980
"default": "application/json"
8081
},
8182
"submissionSchema": {
82-
"$recursiveRef": "https://json-schema.org/draft/2019-09/hyper-schema",
83+
"$dynamicRef": "https://json-schema.org/draft/2019-09/hyper-schema#meta",
8384
"default": true
8485
},
8586
"$comment": {

‎meta/applicator.json‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,52 +4,52 @@
44
"$vocabulary": {
55
"https://json-schema.org/draft/2019-09/vocab/applicator": true
66
},
7-
"$recursiveAnchor": true,
7+
"$dynamicAnchor": "meta",
88

99
"title": "Applicator vocabulary meta-schema",
1010
"properties": {
11-
"additionalItems": { "$recursiveRef": "#" },
12-
"unevaluatedItems": { "$recursiveRef": "#" },
11+
"additionalItems": { "$dynamicRef": "#meta" },
12+
"unevaluatedItems": { "$dynamicRef": "#meta" },
1313
"items": {
1414
"anyOf": [
15-
{ "$recursiveRef": "#" },
15+
{ "$dynamicRef": "#meta" },
1616
{ "$ref": "#/$defs/schemaArray" }
1717
]
1818
},
19-
"contains": { "$recursiveRef": "#" },
20-
"additionalProperties": { "$recursiveRef": "#" },
21-
"unevaluatedProperties": { "$recursiveRef": "#" },
19+
"contains": { "$dynamicRef": "#meta" },
20+
"additionalProperties": { "$dynamicRef": "#meta" },
21+
"unevaluatedProperties": { "$dynamicRef": "#meta" },
2222
"properties": {
2323
"type": "object",
24-
"additionalProperties": { "$recursiveRef": "#" },
24+
"additionalProperties": { "$dynamicRef": "#meta" },
2525
"default": {}
2626
},
2727
"patternProperties": {
2828
"type": "object",
29-
"additionalProperties": { "$recursiveRef": "#" },
29+
"additionalProperties": { "$dynamicRef": "#meta" },
3030
"propertyNames": { "format": "regex" },
3131
"default": {}
3232
},
3333
"dependentSchemas": {
3434
"type": "object",
3535
"additionalProperties": {
36-
"$recursiveRef": "#"
36+
"$dynamicRef": "#meta"
3737
}
3838
},
39-
"propertyNames": { "$recursiveRef": "#" },
40-
"if": { "$recursiveRef": "#" },
41-
"then": { "$recursiveRef": "#" },
42-
"else": { "$recursiveRef": "#" },
39+
"propertyNames": { "$dynamicRef": "#meta" },
40+
"if": { "$dynamicRef": "#meta" },
41+
"then": { "$dynamicRef": "#meta" },
42+
"else": { "$dynamicRef": "#meta" },
4343
"allOf": { "$ref": "#/$defs/schemaArray" },
4444
"anyOf": { "$ref": "#/$defs/schemaArray" },
4545
"oneOf": { "$ref": "#/$defs/schemaArray" },
46-
"not": { "$recursiveRef": "#" }
46+
"not": { "$dynamicRef": "#meta" }
4747
},
4848
"$defs": {
4949
"schemaArray": {
5050
"type": "array",
5151
"minItems": 1,
52-
"items": { "$recursiveRef": "#" }
52+
"items": { "$dynamicRef": "#meta" }
5353
}
5454
}
5555
}

‎meta/content.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
"$vocabulary": {
55
"https://json-schema.org/draft/2019-09/vocab/content": true
66
},
7-
"$recursiveAnchor": true,
7+
"$dynamicAnchor": "meta",
88

99
"title": "Content vocabulary meta-schema",
1010

1111
"type": ["object", "boolean"],
1212
"properties": {
1313
"contentMediaType": { "type": "string" },
1414
"contentEncoding": { "type": "string" },
15-
"contentSchema": { "$recursiveRef": "#" }
15+
"contentSchema": { "$dynamicRef": "#meta" }
1616
}
1717
}

‎meta/core.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"$vocabulary": {
55
"https://json-schema.org/draft/2019-09/vocab/core": true
66
},
7-
"$recursiveAnchor": true,
7+
"$dynamicAnchor": "meta",
88

99
"title": "Core vocabulary meta-schema",
1010
"type": ["object", "boolean"],
@@ -51,7 +51,7 @@
5151
},
5252
"$defs": {
5353
"type": "object",
54-
"additionalProperties": { "$recursiveRef": "#" },
54+
"additionalProperties": { "$dynamicRef": "#meta" },
5555
"default": {}
5656
}
5757
}

‎meta/format.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"$vocabulary": {
55
"https://json-schema.org/draft/2019-09/vocab/format": true
66
},
7-
"$recursiveAnchor": true,
7+
"$dynamicAnchor": "meta",
88

99
"title": "Format vocabulary meta-schema",
1010
"type": ["object", "boolean"],

‎meta/hyper-schema.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"$vocabulary": {
55
"https://json-schema.org/draft/2019-09/vocab/hyper-schema": true
66
},
7-
"$recursiveAnchor": true,
7+
"$dynamicAnchor": "meta",
88

99
"title": "JSON Hyper-Schema Vocabulary Schema",
1010
"type": ["object", "boolean"],

‎meta/meta-data.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"$vocabulary": {
55
"https://json-schema.org/draft/2019-09/vocab/meta-data": true
66
},
7-
"$recursiveAnchor": true,
7+
"$dynamicAnchor": "meta",
88

99
"title": "Meta-data vocabulary meta-schema",
1010

‎meta/validation.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"$vocabulary": {
55
"https://json-schema.org/draft/2019-09/vocab/validation": true
66
},
7-
"$recursiveAnchor": true,
7+
"$dynamicAnchor": "meta",
88

99
"title": "Validation vocabulary meta-schema",
1010
"type": ["object", "boolean"],

‎schema.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"https://json-schema.org/draft/2019-09/vocab/format": false,
1010
"https://json-schema.org/draft/2019-09/vocab/content": true
1111
},
12-
"$recursiveAnchor": true,
12+
"$dynamicAnchor": "meta",
1313

1414
"title": "Core and Validation specifications meta-schema",
1515
"allOf": [
@@ -25,15 +25,15 @@
2525
"definitions": {
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",
28-
"additionalProperties": { "$recursiveRef": "#" },
28+
"additionalProperties": { "$dynamicRef": "#meta" },
2929
"default": {}
3030
},
3131
"dependencies": {
3232
"$comment": "\"dependencies\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \"dependentSchemas\" and \"dependentRequired\"",
3333
"type": "object",
3434
"additionalProperties": {
3535
"anyOf": [
36-
{ "$recursiveRef": "#" },
36+
{ "$dynamicRef": "#meta" },
3737
{ "$ref": "meta/validation#/$defs/stringArray" }
3838
]
3939
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /