Skip to content

Commit 8f2fd42

Browse files
committed
Update text/HTML
1 parent 0856272 commit 8f2fd42

File tree

2 files changed

+21
-22
lines changed

2 files changed

+21
-22
lines changed

proposals/json-schema-hypermedia.html

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -640,11 +640,11 @@ <h3>Table of Contents</h3>
640640
The base URI to be used for relative URI resolution SHOULD is defined as follows:
641641
</p>
642642
<blockquote class="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"
644644
</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
646646
</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.
648648
</p>
649649
</blockquote><p>
650650

@@ -880,8 +880,7 @@ <h3>Table of Contents</h3>
880880
<dd>
881881
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.
882882
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.
885884

886885
</dd>
887886
</dl></blockquote><p>
@@ -951,12 +950,12 @@ <h3>Table of Contents</h3>
951950

952951
<p>
953952
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.
955954

956955
</p>
957956
<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.
960959

961960
</p>
962961
<p>

proposals/json-schema-hypermedia.txt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -562,15 +562,14 @@ Internet-Draft JSON Schema Media Type January 2013
562562

563563

564564
if the data has a link defined, with a relation of "self", then
565-
the "href" value of that link is used
565+
the "href" value of that link is used, unless the relation of the
566+
link being resolved is also "self"
566567

567-
if no such link exists, the URI should be resolved against the
568-
link with relation "self" belonging to the closest parent node in
569-
the JSON document
568+
otherwise, the URI should be resolved against the link with
569+
relation "self" belonging to the closest parent node in the JSON
570+
document, if it exists
570571

571-
if no such links exist (the data and all its parents in the tree
572-
do not have a "self" link), the URI used to fetch the document
573-
should be used.
572+
otherwise, the URI used to fetch the document should be used.
574573

575574
This property is not optional.
576575

@@ -612,6 +611,7 @@ Internet-Draft JSON Schema Media Type January 2013
612611

613612

614613

614+
615615
Luff, et al. Expires July 26, 2013 [Page 11]
616616

617617
Internet-Draft JSON Schema Media Type January 2013
@@ -805,8 +805,8 @@ Internet-Draft JSON Schema Media Type January 2013
805805
purposes of user agent interaction or fragment resolution. All
806806
other properties of the instance objects can be regarded as meta-
807807
data descriptions for the data. The URI of this link MUST refer
808-
to a location within the instance document. If it is not, this
809-
link should be ignored.
808+
to a location within the instance document, otherwise the link
809+
MUST be ignored.
810810

811811
The following relations are applicable for schemas (the schema as the
812812
"from" resource in the relation):
@@ -884,11 +884,11 @@ Internet-Draft JSON Schema Media Type January 2013
884884
The presence of a link with relation "root" alters what the root of
885885
the document is considered to be. For fragment resolution methods
886886
(such as JSON Pointer fragments) that navigate through the document,
887-
the target of the "root" link should be the starting point.
887+
the target of the "root" link should be the starting point for such
888+
methods.
888889

889-
The only exception is "root" links themselves, which must always
890-
refer to a location within the instance document. When calculating
891-
the target of "root" links, existing "root" links MUST not be taken
890+
The only exception is "root" links themselves. When calculating the
891+
target of links with relation "root", existing "root" links MUST NOT
892892

893893

894894

@@ -897,7 +897,7 @@ Luff, et al. Expires July 26, 2013 [Page 16]
897897
Internet-Draft JSON Schema Media Type January 2013
898898

899899

900-
into consideration.
900+
be taken into consideration.
901901

902902
For example, say we have the following schema:
903903

0 commit comments

Comments
 (0)