Skip to content

Commit 1a99492

Browse files
committed
Merge pull request #417 from bintoro/complex-attrs
Explain complex attributes and linking from within
2 parents 51663da + e38697a commit 1a99492

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

format/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,11 @@ In addition, a resource object **MAY** contain any of these top-level members:
144144
Any other top-level member in a resource object represents an "attribute".
145145
An attribute may contain any valid JSON value.
146146

147+
If the value of an attribute is a JSON object or array, the member is called a
148+
*complex attribute*. The value is allowed to be any valid JSON structure.
149+
However, a JSON object that constitutes or is contained in a complex attribute
150+
must reserve the `id`, `type`, `links`, and `meta` members for future use.
151+
147152
Although has-one foreign keys (e.g. `author_id`) are often stored internally
148153
alongside other information to be represented in a resource object, these keys
149154
*SHOULD NOT* appear as attributes. If relations are provided, they **MUST**

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