Hi all, I’d just like to clarify the meaning of a top-level document with both an errors
property and a links
property.
The spec clearly states that a top-level document without a data
property will not have an included
property either:
If a document does not contain a top-level
data
key, theincluded
member MUST NOT be present either.
However, no such condition exists for links
. And the spec defines the links
field as such:
links
: a links object related to the primary data.
So, I ask: what does it mean to have links
that are “related to the primary data” when no such primary data is included in the document?
My guess: this description of the links
field is not entirely accurate, as the self
link (for example) is sensible to include in a document that does not contain any primary data.