From 7ea13d8f8cea0a51153ff880ff2633bf0d280ce4 Mon Sep 17 00:00:00 2001 From: Henry Andrews Date: Tue, 8 Nov 2016 11:25:56 -0800 Subject: [PATCH] Fix parent link example. This addresses issue #97, where it was noted that "The only interpretation that makes sense is it's providing an array of instances, each can be described by the schema." This makes the schema an array schema, and replaces the "self" link with the more correct (or at least less confusing in this context) "item" link. Also fix a "the the" typo in the security considerations section, and make "hyper-schema" consistent. --- jsonschema-hyperschema.xml | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/jsonschema-hyperschema.xml b/jsonschema-hyperschema.xml index 6cfd77c2..f691694f 100644 --- a/jsonschema-hyperschema.xml +++ b/jsonschema-hyperschema.xml @@ -514,16 +514,19 @@
- For example, if a schema is defined: + For example, if a hyper-schema is defined:
@@ -542,7 +545,7 @@ }]]]> - 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". @@ -552,10 +555,10 @@
- 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.
- For example, if a hyper schema was defined: + For example, if a hyper-schema was defined: