ja_serializer icon indicating copy to clipboard operation
ja_serializer copied to clipboard

Rendering response with only meta (no data or errors)

Open lleger opened this issue 9 years ago • 1 comments

From the spec:

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.

lleger avatar Feb 09 '17 04:02 lleger

@lleger no, not currently, we could add support for it though.

alanpeabody avatar Feb 09 '17 12:02 alanpeabody