Skip to content

Commit e518da0

Browse files
committed
Made root a relation and clarified context of pathStart
1 parent 0f6a2fc commit e518da0

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

draft-zyp-json-schema-03.xml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,14 @@ instances - This indicates the target resource that represents collection of ins
535535
<t>
536536
create - This indicates a target to use for creating new instances of a schema. This link definition SHOULD be a submission link with a non-safe method (like POST).
537537
</t>
538+
<t>root - This relation indicates that the target
539+
SHOULD be treated as the root or the body of the representation for the
540+
purposes of user agent interaction and fragment resolution (all other
541+
properties of the instance objects are can be regarded as meta-data
542+
descriptions for the data).
543+
544+
</t>
545+
538546
</list>
539547
For example, if a schema is defined:
540548
<figure>
@@ -743,16 +751,6 @@ identifiers for referencing the value of the foo propery.</t>
743751

744752
</section>
745753

746-
<section title="root">
747-
<t>This attribute indicates that the value of the instance property value
748-
SHOULD be treated as the root or the body of the representation for the
749-
purposes of user agent interaction and fragment resolution (all other
750-
properties of the instance objects are can be regarded as meta-data
751-
descriptions for the data).
752-
753-
</t>
754-
755-
</section>
756754
<section title="readonly">
757755
<t>This indicates that the instance property SHOULD NOT be changed. Attempts by a user agent to modify the value of this property are expected to be rejected by a server.</t>
758756
</section>
@@ -777,7 +775,9 @@ schema specifies a starting URI that is longer and also matches the
777775
instance, this schema SHOULD NOT be applied to the instance. Any schema
778776
that does not have a pathStart attribute SHOULD be considered applicable
779777
to all the instances for which it is referenced.
780-
778+
</t>
779+
<t>
780+
If this URI is relative, it should be resolved against the instance's URI.
781781

782782
</t>
783783

@@ -875,7 +875,7 @@ Content-Type: application/json; profile=/schema-for-this-data
875875
<section title="Registry of Link Relations">
876876
<t>
877877
This registry is maintained by IANA per RFC 4287 and this specification adds
878-
three values: "full", "create", "instances". New
878+
four values: "full", "create", "instances", "root". New
879879
assignments are subject to IESG Approval, as outlined in [RFC5226].
880880
Requests should be made by email to IANA, which will then forward the
881881
request to the IESG, requesting approval.

0 commit comments

Comments
 (0)