Skip to content

Commit f25113a

Browse files
committed
Fix 2019-09 hyperschema meta-schemas
The links.json schema uses `$recursiveRef` wrong. In fact, `$recursiveRef` is not capable of expressing the relationship that was intended. With this version, schemas in the `links` keyword are pinned to the 2019-09 hyperschema dialect even if `$recursiveRef` is used to extend the 2019-09 hyperschema dialect. While not exactly what was intended, this covers all but advanced use-cases.
1 parent 03fe369 commit f25113a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: links.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://json-schema.org/draft/2019-09/hyper-schema",
2+
"$schema": "https://json-schema.org/draft/2019-09",
33
"$id": "https://json-schema.org/draft/2019-09/links",
44
"title": "Link Description Object",
55
"allOf": [
@@ -36,7 +36,7 @@
3636
"format": "uri-template"
3737
},
3838
"hrefSchema": {
39-
"$recursiveRef": "https://json-schema.org/draft/2019-09/hyper-schema",
39+
"$ref": "https://json-schema.org/draft/2019-09/hyper-schema",
4040
"default": false
4141
},
4242
"templatePointers": {
@@ -63,23 +63,23 @@
6363
"type": "string"
6464
},
6565
"targetSchema": {
66-
"$recursiveRef": "https://json-schema.org/draft/2019-09/hyper-schema",
66+
"$ref": "https://json-schema.org/draft/2019-09/hyper-schema",
6767
"default": true
6868
},
6969
"targetMediaType": {
7070
"type": "string"
7171
},
7272
"targetHints": { },
7373
"headerSchema": {
74-
"$recursiveRef": "https://json-schema.org/draft/2019-09/hyper-schema",
74+
"$ref": "https://json-schema.org/draft/2019-09/hyper-schema",
7575
"default": true
7676
},
7777
"submissionMediaType": {
7878
"type": "string",
7979
"default": "application/json"
8080
},
8181
"submissionSchema": {
82-
"$recursiveRef": "https://json-schema.org/draft/2019-09/hyper-schema",
82+
"$ref": "https://json-schema.org/draft/2019-09/hyper-schema",
8383
"default": true
8484
},
8585
"$comment": {

0 commit comments

Comments
 (0)