it seems like json-api-normalizer can't handle single objects in the primary data field (if not encapsulated in an array, as the examples in the readme suggest).
According to the json api doc, a single object should also be accepted:
Primary data MUST be either:
a single resource object, a single resource identifier object, or null, for requests that target single resources
an array of resource objects, an array of resource identifier objects, or an empty array ([]), for requests that target resource collections
Backends that follow the specification for single objects (e.g. in the show route of a resource) are now not supported. I am happy to create a pull request if you also think that it should be supported.
Hi,
it seems like json-api-normalizer can't handle single objects in the primary data field (if not encapsulated in an array, as the examples in the readme suggest).
According to the json api doc, a single object should also be accepted:
Backends that follow the specification for single objects (e.g. in the show route of a resource) are now not supported. I am happy to create a pull request if you also think that it should be supported.