Skip to content

Commit 4f110e7

Browse files
committed
Add $anchor to meta-schema, update $id
1 parent bd2b330 commit 4f110e7

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

hyper-schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://json-schema.org/draft/2019-08/hyper-schema#",
2+
"$schema": "https://json-schema.org/draft/2019-08/hyper-schema",
33
"$id": "https://json-schema.org/draft/2019-08/hyper-schema",
44
"$vocabulary": {
55
"https://json-schema.org/draft/2019-08/vocab/core": true,

links.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://json-schema.org/draft/2019-08/hyper-schema#",
2+
"$schema": "https://json-schema.org/draft/2019-08/hyper-schema",
33
"$id": "https://json-schema.org/draft/2019-08/links",
44
"title": "Link Description Object",
55
"allOf": [

meta/core.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,18 @@
1111
"properties": {
1212
"$id": {
1313
"type": "string",
14-
"format": "uri-reference"
14+
"format": "uri-reference",
15+
"$comment": "Non-empty fragments not allowed.",
16+
"pattern": "^[^#]#?$"
1517
},
1618
"$schema": {
1719
"type": "string",
1820
"format": "uri"
1921
},
22+
"$anchor": {
23+
"type": "string",
24+
"pattern": "^[A-Za-z][-A-Za-z0-9.:_]*$"
25+
},
2026
"$ref": {
2127
"type": "string",
2228
"format": "uri-reference"

schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"$schema": "https://json-schema.org/draft/2019-08/schema#",
3-
"$id": "https://json-schema.org/draft/2019-08/schema#",
2+
"$schema": "https://json-schema.org/draft/2019-08/schema",
3+
"$id": "https://json-schema.org/draft/2019-08/schema",
44
"$vocabulary": {
55
"https://json-schema.org/draft/2019-08/vocab/core": true,
66
"https://json-schema.org/draft/2019-08/vocab/applicator": true,

0 commit comments

Comments
 (0)