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 1d9c0d3

Browse files
Merge pull request #930 from handrews/dynamic
Rename $recursive* to $dynamic*, make it work with normal anchors / plain name fragments instead of base URI switching
2 parents 53e86ac + 9821063 commit 1d9c0d3

File tree

11 files changed

+174
-165
lines changed

11 files changed

+174
-165
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": [

‎jsonschema-core.xml‎

Lines changed: 142 additions & 134 deletions
Large diffs are not rendered by default.

‎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: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,47 +4,47 @@
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": {
1111
"prefixItems": { "$ref": "#/$defs/schemaArray" },
12-
"items": { "$recursiveRef": "#" },
13-
"unevaluatedItems": { "$recursiveRef": "#" },
14-
"contains": { "$recursiveRef": "#" },
15-
"additionalProperties": { "$recursiveRef": "#" },
16-
"unevaluatedProperties": { "$recursiveRef": "#" },
12+
"items": { "$dynamicRef": "#meta" },
13+
"unevaluatedItems": { "$dynamicRef": "#meta" },
14+
"contains": { "$dynamicRef": "#meta" },
15+
"additionalProperties": { "$dynamicRef": "#meta" },
16+
"unevaluatedProperties": { "$dynamicRef": "#meta" },
1717
"properties": {
1818
"type": "object",
19-
"additionalProperties": { "$recursiveRef": "#" },
19+
"additionalProperties": { "$dynamicRef": "#meta" },
2020
"default": {}
2121
},
2222
"patternProperties": {
2323
"type": "object",
24-
"additionalProperties": { "$recursiveRef": "#" },
24+
"additionalProperties": { "$dynamicRef": "#meta" },
2525
"propertyNames": { "format": "regex" },
2626
"default": {}
2727
},
2828
"dependentSchemas": {
2929
"type": "object",
3030
"additionalProperties": {
31-
"$recursiveRef": "#"
31+
"$dynamicRef": "#meta"
3232
}
3333
},
34-
"propertyNames": { "$recursiveRef": "#" },
35-
"if": { "$recursiveRef": "#" },
36-
"then": { "$recursiveRef": "#" },
37-
"else": { "$recursiveRef": "#" },
34+
"propertyNames": { "$dynamicRef": "#meta" },
35+
"if": { "$dynamicRef": "#meta" },
36+
"then": { "$dynamicRef": "#meta" },
37+
"else": { "$dynamicRef": "#meta" },
3838
"allOf": { "$ref": "#/$defs/schemaArray" },
3939
"anyOf": { "$ref": "#/$defs/schemaArray" },
4040
"oneOf": { "$ref": "#/$defs/schemaArray" },
41-
"not": { "$recursiveRef": "#" }
41+
"not": { "$dynamicRef": "#meta" }
4242
},
4343
"$defs": {
4444
"schemaArray": {
4545
"type": "array",
4646
"minItems": 1,
47-
"items": { "$recursiveRef": "#" }
47+
"items": { "$dynamicRef": "#meta" }
4848
}
4949
}
5050
}

‎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"],

0 commit comments

Comments
(0)

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