A document MUST contain at least one of the following top-level members:
data: the document’s “primary data”
errors: an array of error objects
meta: a meta object that contains non-standard meta-information.
It's theoretically compliant to render a response that doesn't have either a data or errors block and just a meta block. Is it possible to do this? I tried passing both nil and an empty map to the formatter in place of data with no luck with no luck.
From the spec:
It's theoretically compliant to render a response that doesn't have either a data or errors block and just a meta block. Is it possible to do this? I tried passing both
nil
and an empty map to the formatter in place of data with no luck with no luck.