diff --git a/jsonschema-hyperschema.xml b/jsonschema-hyperschema.xml index 128da879..f5d65c23 100644 --- a/jsonschema-hyperschema.xml +++ b/jsonschema-hyperschema.xml @@ -6,6 +6,7 @@ + @@ -703,9 +704,26 @@ GET /foo/
- This property provides a schema that is expected to describe the link target, including what a client can expect if it makes an HTTP GET request, and what it should send if it replaces the resource in an HTTP PUT request. This property is advisory only. + This property provides a schema that is expected to describe + the link target's representation. Depending on the protocol, + the schema may or may not describe the response to any particular + request sent to the link. This property is advisory only. - +
+ + The relationship between a resource's representation and + HTTP requests and responses is determined by + RFC 7231, section 4.3.1 - "GET", section 4.3.4 "PUT", and section 3.1.4.2, "Content-Location". + In particular, "targetSchema" suggests what a client can expect + for the response to an HTTP GET or any response for which + the "Content-Location" header is equal to the request URI, + and what a client should send if it replaces the resource + in an HTTP PUT request. + Per RFC 5789, the request structure + for an HTTP PATCH is determined by the combination of "targetSchema" + and the request media type. + +
This property has similar security concerns to that of "mediaType". @@ -950,6 +968,7 @@ GET /foo/ &rfc2046; + &rfc5789; &rfc5988; &rfc7231; &html5;