Skip to content

Commit df456f3

Browse files
authored
drop constraints on attribute values (json-api#1630)
1 parent f77fdc2 commit df456f3

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

_format/1.1/index.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -462,12 +462,8 @@ The value of the `attributes` key **MUST** be an object (an "attributes
462462
object"). Members of the attributes object ("attributes") represent information
463463
about the [resource object][resource objects] in which it's defined.
464464

465-
Attributes may contain any valid JSON value.
466-
467-
Complex data structures involving JSON objects and arrays are allowed as
468-
attribute values. However, any object that constitutes or is contained in an
469-
attribute **MUST NOT** contain a `relationships` or `links` member, as those
470-
members are reserved by this specification for future use.
465+
Attributes may contain any valid JSON value, including complex data structures
466+
involving JSON objects and arrays.
471467

472468
Keys that reference related resources (e.g. `author_id`) **SHOULD NOT** appear
473469
as attributes. Instead, [relationships] **SHOULD** be used.

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