Skip to content

Commit 13307cb

Browse files
committed
Add "anchorPointer" to the meta-schema.
The "anyOf" is an attempt to convey some information about the Relative JSON Pointer even though we don't have a format for it (yet?) It is an "anyOf" rather than a "oneOf" because if an implementation does not support "format", a "oneOf" would likely fail incorrectly.
1 parent 9618468 commit 13307cb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

hyper-schema.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@
3434
"type": "string",
3535
"format": "uri-reference"
3636
},
37+
"anchorPointer": {
38+
"description": "a Relative JSON Pointer adjusting the link context within the instance",
39+
"type": "string",
40+
"anyOf": [
41+
{ "format": "json-pointer" },
42+
{ "pattern": "^[0-9]" }
43+
]
44+
},
3745
"title": {
3846
"description": "a title for the link",
3947
"type": "string"

0 commit comments

Comments
 (0)