Skip to content

Commit 35de1d5

Browse files
author
Lachlan Sylvester
committed
update the comments example
1 parent c20d883 commit 35de1d5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

format/index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ can be specified by including a member in a resource's links object.
248248

249249
The name of the relationship declared in the key **SHALL NOT** be `"self"`.
250250

251-
The value of a relationship **MUST** be a "link object", and **MUST** contain at
251+
The value of a relationship **MUST** be an object (a "link object"), and **MUST** contain at
252252
least one of the following:
253253

254254
* A `"self"` member, whose value is a URL for the relationship itself (a
@@ -304,7 +304,9 @@ For example, the following article is associated with an `author` and `comments`
304304
"related": "http://example.com/articles/1/author",
305305
"linkage": { "type": "people", "id": "9" }
306306
},
307-
"comments": "http://example.com/articles/1/comments"
307+
"comments": {
308+
"related": "http://example.com/articles/1/comments"
309+
}
308310
}
309311
}
310312
// ...

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy