Skip to content

Commit 413141b

Browse files
committed
"anchor" is a URI Template
Addresses the main point of #416. "anchor" needs to be a URI template as the context URI will often share characteristics of the "self" link.
1 parent 0282f4a commit 413141b

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

jsonschema-hyperschema.xml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -922,9 +922,15 @@ GET /foo/
922922
<section title="anchor" anchor="anchor">
923923
<t>
924924
This property sets the context URI of the link.
925-
The value of the property MUST be resolved as a
926-
<xref target="RFC3986">URI-reference</xref> against
927-
the base URI of the instance.
925+
The value of the property is a <xref target="RFC6570">URI Template</xref>,
926+
and the resulting <xref target="RFC3986">URI-reference</xref> MUST be resolved
927+
against the base URI of the instance.
928+
</t>
929+
<t>
930+
The URI is computed from the provided URI template using the same process
931+
described for the <xref target="href">"href"</xref> property, with the
932+
exception that <xref target="hrefSchema">"hrefSchema"</xref> MUST NOT
933+
be applied. Unlike target URIs, context URIs do not accept user input.
928934
</t>
929935
</section>
930936

0 commit comments

Comments
 (0)