Skip to content

Commit 6b06b2d

Browse files
authored
Merge pull request #419 from handrews/anchor-template
"anchor" is a URI Template
2 parents 7851913 + 46bfd95 commit 6b06b2d

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

jsonschema-hyperschema.xml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,9 +1029,15 @@ GET /foo/
10291029
<section title="anchor" anchor="anchor">
10301030
<t>
10311031
This property sets the context URI of the link.
1032-
The value of the property MUST be resolved as a
1033-
<xref target="RFC3986">URI-reference</xref> against
1034-
the base URI of the instance.
1032+
The value of the property is a <xref target="RFC6570">URI Template</xref>,
1033+
and the resulting <xref target="RFC3986">URI-reference</xref> MUST be resolved
1034+
against the base URI of the instance.
1035+
</t>
1036+
<t>
1037+
The URI is computed from the provided URI template using the same process
1038+
described for the <xref target="href">"href"</xref> property, with the
1039+
exception that <xref target="hrefSchema">"hrefSchema"</xref> MUST NOT
1040+
be applied. Unlike target URIs, context URIs do not accept user input.
10351041
</t>
10361042
</section>
10371043

links.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
},
3737
"anchor": {
3838
"type": "string",
39-
"format": "uri-reference"
39+
"format": "uri-template"
4040
},
4141
"anchorPointer": {
4242
"type": "string",

0 commit comments

Comments
 (0)