You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: proposals/json-schema-hypermedia.html
+7-8Lines changed: 7 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -640,11 +640,11 @@ <h3>Table of Contents</h3>
640
640
The base URI to be used for relative URI resolution SHOULD is defined as follows:
641
641
</p>
642
642
<blockquoteclass="text">
643
-
<p>if the data has a link defined, with a relation of "self", then the "href" value of that link is used
643
+
<p>if the data has a link defined, with a relation of "self", then the "href" value of that link is used, unless the relation of the link being resolved is also "self"
644
644
</p>
645
-
<p>if no such link exists, the URI should be resolved against the link with relation "self" belonging to the closest parent node in the JSON document
645
+
<p>otherwise, the URI should be resolved against the link with relation "self" belonging to the closest parent node in the JSON document, if it exists
646
646
</p>
647
-
<p>if no such links exist (the data and all its parents in the tree do not have a "self" link), the URI used to fetch the document should be used.
647
+
<p>otherwise, the URI used to fetch the document should be used.
648
648
</p>
649
649
</blockquote><p>
650
650
@@ -880,8 +880,7 @@ <h3>Table of Contents</h3>
880
880
<dd>
881
881
This relation indicates that the target of the link SHOULD be treated as the root or the body of the representation for the purposes of user agent interaction or fragment resolution.
882
882
All other properties of the instance objects can be regarded as meta-data descriptions for the data.
883
-
The URI of this link MUST refer to a location within the instance document.
884
-
If it is not, this link should be ignored.
883
+
The URI of this link MUST refer to a location within the instance document, otherwise the link MUST be ignored.
885
884
886
885
</dd>
887
886
</dl></blockquote><p>
@@ -951,12 +950,12 @@ <h3>Table of Contents</h3>
951
950
952
951
<p>
953
952
The presence of a link with relation "root" alters what the root of the document is considered to be.
954
-
For fragment resolution methods (such as JSON Pointer fragments) that navigate through the document, the target of the "root" link should be the starting point.
953
+
For fragment resolution methods (such as JSON Pointer fragments) that navigate through the document, the target of the "root" link should be the starting point for such methods.
955
954
956
955
</p>
957
956
<p>
958
-
The only exception is "root" links themselves, which must always refer to a location within the instance document.
959
-
When calculating the target of "root" links, existing "root" links MUST not be taken into consideration.
957
+
The only exception is "root" links themselves.
958
+
When calculating the target of links with relation "root", existing "root" links MUST NOT be taken into consideration.
0 commit comments