|
112 | 112 | This document describes how JSON Schema can be used to define hyperlinks on instance data. It also defines how to provide additional information required to interpret JSON data as rich multimedia documents.
|
113 | 113 | </t>
|
114 | 114 | <t>
|
115 |
| - Just as with the core JSON schema keywords, all the properties described in the "Schema Keywords" section are optional. |
| 115 | + Just as with the core JSON schema keywords, all the keywords described in the "Schema Keywords" section are optional. |
116 | 116 | </t>
|
117 | 117 | <figure>
|
118 | 118 | <preamble>Here is an example JSON Schema defining hyperlinks, and providing a multimedia interpretation for the "imgData" property:</preamble>
|
|
196 | 196 | </t>
|
197 | 197 |
|
198 | 198 | <figure>
|
199 |
| - <preamble>An example schema using the "links" keywords could be:</preamble> |
| 199 | + <preamble>An example schema using the "links" keyword could be:</preamble> |
200 | 200 | <artwork>
|
201 | 201 | <![CDATA[{
|
202 | 202 | "title": "Schema defining links",
|
|
474 | 474 | After the above substitutions, if the character "$" (dollar sign) appears within a pair of curly brackets, then it MUST be replaced with the text "%73elf" (which is "self" with a percent-encoded "s").
|
475 | 475 | </t>
|
476 | 476 | <t>
|
477 |
| - The purpose of this stage is to allow the use of the instance value itself (not any properties) in the URI Template, by the special value "%73elf". |
| 477 | + The purpose of this stage is to allow the use of the instance value itself (instead of its object properties or array items) in the URI Template, by the special value "%73elf". |
478 | 478 | </t>
|
479 | 479 | </section>
|
480 | 480 |
|
@@ -593,7 +593,7 @@ Input Output
|
593 | 593 |
|
594 | 594 | <t hangText="root">
|
595 | 595 | 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.
|
596 |
| - All other properties of the instance objects can be regarded as meta-data descriptions for the data. |
| 596 | + All other data in the document can be regarded as meta-data for the document. |
597 | 597 | The URI of this link MUST refer to a ___location within the instance document, otherwise the link MUST be ignored.
|
598 | 598 | </t>
|
599 | 599 | </list>
|
@@ -913,14 +913,18 @@ GET /foo/
|
913 | 913 |
|
914 | 914 | <section title="Submission Link Properties">
|
915 | 915 | <t>
|
916 |
| - The following properties also apply to link definition objects, and provide functionality analogous to HTML forms, in providing a means for submitting extra (often user supplied) information to send to a server. |
| 916 | + The following properties also apply to Link Description Objects, and provide functionality analogous to HTML forms, in providing a means for submitting extra (often user supplied) information to send to a server. |
917 | 917 | </t>
|
918 | 918 |
|
919 | 919 | <section title="method">
|
920 | 920 | <t>
|
921 | 921 | This property defines which method can be used to access the target resource.
|
922 |
| - In an HTTP environment, this could be "GET" or "POST" (other HTTP methods such as "PUT" and "DELETE" have semantics that are clearly implied by accessed resources, and do not need to be defined here). |
923 |
| - This defaults to "GET". |
| 922 | + In an HTTP environment, this might be "GET" or "POST" (or other HTTP methods). |
| 923 | + </t> |
| 924 | + <t> |
| 925 | + Some link relation values imply a set of appropriate HTTP methods to be used for the link. |
| 926 | + For example, a client might assume that a link with a relation of "edit" can be used in conjuction with the "PUT" HTTP method. |
| 927 | + If the client does not know which methods might be appropriate, then this SHOULD default to "GET". |
924 | 928 | </t>
|
925 | 929 | </section>
|
926 | 930 |
|
|
0 commit comments