Skip to content

Commit

Permalink
Merge pull request #138 from handrews/bugfix
Browse files Browse the repository at this point in the history
Fix parent link example.
Fixes #97
  • Loading branch information
Relequestual committed Nov 17, 2016
2 parents d0391a9 + 7ea13d8 commit 5340c4b
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions jsonschema-hyperschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -514,16 +514,19 @@
</t>

<figure>
<preamble>For example, if a schema is defined:</preamble>
<preamble>For example, if a hyper-schema is defined:</preamble>
<artwork>
<![CDATA[{
"links": [{
"rel": "self",
"href": "{id}"
}, {
"rel": "up",
"href": "{upId}"
}]
"type": "array",
"items": {
"links": [{
"rel": "item",
"href": "{id}"
}, {
"rel": "up",
"href": "{upId}"
}]
}
}]]>
</artwork>
</figure>
Expand All @@ -542,7 +545,7 @@
}]]]>
</artwork>
<postamble>
This would indicate that for the first item in the collection, its own (self) URI would resolve to "/Resource/thing" and the first item's "up" relation SHOULD be resolved to the resource at "/Resource/parent".
This would indicate that for the first item in the collection, its URI as its own resource would resolve to "/Resource/thing" and the first item's "up" relation SHOULD be resolved to the resource at "/Resource/parent".
</postamble>
</figure>

Expand All @@ -552,10 +555,10 @@

<section title="Security Considerations for &quot;self&quot; links">
<t>
When link relation of "self" is used to denote a full representation of an object, the user agent SHOULD NOT consider the representation to be the authoritative representation of the resource denoted by the target URI if the target URI is not equivalent to or a sub-path of the the URI used to request the resource representation which contains the target URI with the "self" link.
When link relation of "self" is used to denote a full representation of an object, the user agent SHOULD NOT consider the representation to be the authoritative representation of the resource denoted by the target URI if the target URI is not equivalent to or a sub-path of the URI used to request the resource representation which contains the target URI with the "self" link.

<figure>
<preamble>For example, if a hyper schema was defined:</preamble>
<preamble>For example, if a hyper-schema was defined:</preamble>
<artwork>
<![CDATA[{
"links": [{
Expand Down

0 comments on commit 5340c4b

Please sign in to comment.