Skip to content

Commit ce6ef93

Browse files
committed
Hyper-schema: Remove uses of "full" relation that doesn't exist anymore
1 parent 4640ddd commit ce6ef93

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

jsonschema-hyperschema.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@
144144
"required" : ["id", "title", "authorId"],
145145
"links": [
146146
{
147-
"rel": "full",
148-
"href": "{id}"
147+
"rel": "self",
148+
"href": "/article{?id}"
149149
},
150150
{
151151
"rel": "author",
@@ -159,6 +159,7 @@
159159
This example schema defines the properties of the instance.
160160
For the "imgData" property, it specifies that that it should be base64-decoded and the resulting binary data treated as a PNG image.
161161
It also defines link relations for the instance, with URIs incorporating values from the instance.
162+
<cref>"id" probably should not normally be a required keyword, since new instances will have an unknown "id" property until is it assigned by the server. However, this property is used in a link, and without it, multiple different instances would be given the same rel=self URI!</cref>
162163
</postamble>
163164
</figure>
164165

@@ -252,7 +253,7 @@
252253
"title": "Schema defining links",
253254
"links": [
254255
{
255-
"rel": "full",
256+
"rel": "self",
256257
"href": "{id}"
257258
},
258259
{

0 commit comments

Comments
 (0)