From 2061e5c617546e2201529102a53ce6be94299670 Mon Sep 17 00:00:00 2001 From: Denis Laxalde Date: Sat, 23 Jun 2018 11:40:29 +0200 Subject: [PATCH 1/3] Add missing semi-colons in Link header examples --- jsonschema-hyperschema.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jsonschema-hyperschema.xml b/jsonschema-hyperschema.xml index fee21836..eeafe874 100644 --- a/jsonschema-hyperschema.xml +++ b/jsonschema-hyperschema.xml @@ -1552,7 +1552,7 @@ GET https://api.example.com HTTP/1.1 200 OK Content-Type: application/json -Link: rel=describedBy +Link: ; rel=describedBy {} ]]> @@ -1896,10 +1896,10 @@ GET https://api.example.com/trees/1/nodes/123 HTTP/1.1 200 OK Content-Type: application/json -Link: rel=self -Link: rel=up +Link: ; rel=self +Link: ; rel=up; anchor= -Link: rev=up +Link: ; rev=up { "id": 123, "treeId": 1, From 6af34b395517aeee4ee60ff4157f1029630d5dbc Mon Sep 17 00:00:00 2001 From: Denis Laxalde Date: Sat, 23 Jun 2018 11:41:56 +0200 Subject: [PATCH 2/3] Quote value of "anchor" Link header parameter The proper form for anchor value appears to be between quotes, not <>. --- jsonschema-hyperschema.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsonschema-hyperschema.xml b/jsonschema-hyperschema.xml index eeafe874..8db9a387 100644 --- a/jsonschema-hyperschema.xml +++ b/jsonschema-hyperschema.xml @@ -1898,7 +1898,7 @@ GET https://api.example.com/trees/1/nodes/123 HTTP/1.1 Content-Type: application/json Link: ; rel=self Link: ; rel=up; - anchor= + anchor="https://api.example.com/trees/1/nodes/456" Link: ; rev=up { "id": 123, From eba00e16412c1211b07f271bb0ae7856c5a3d031 Mon Sep 17 00:00:00 2001 From: Denis Laxalde Date: Sat, 23 Jun 2018 11:49:18 +0200 Subject: [PATCH 3/3] Quote all link parameters in Link header examples We already had some quoted. Make things consistent by quoting them all. --- jsonschema-hyperschema.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jsonschema-hyperschema.xml b/jsonschema-hyperschema.xml index 8db9a387..4055598d 100644 --- a/jsonschema-hyperschema.xml +++ b/jsonschema-hyperschema.xml @@ -1552,7 +1552,7 @@ GET https://api.example.com HTTP/1.1 200 OK Content-Type: application/json -Link: ; rel=describedBy +Link: ; rel="describedBy" {} ]]> @@ -1896,10 +1896,10 @@ GET https://api.example.com/trees/1/nodes/123 HTTP/1.1 200 OK Content-Type: application/json -Link: ; rel=self -Link: ; rel=up; +Link: ; rel="self" +Link: ; rel="up"; anchor="https://api.example.com/trees/1/nodes/456" -Link: ; rev=up +Link: ; rev="up" { "id": 123, "treeId": 1,