jsonapi-bundle icon indicating copy to clipboard operation
jsonapi-bundle copied to clipboard

Avoid sending JSON:API version on payload

Open marcemira opened this issue 6 years ago • 3 comments

Is there a way to configure the package to opt out of sending the jsonapi spec version on each response?

"jsonapi": { "version":"1.0" }

Thanks

marcemira avatar Sep 06 '19 19:09 marcemira

No, unfortunately, there is no configuration. in each document, you need return null for "getJsonApi".

paknahad avatar Sep 07 '19 11:09 paknahad

Yep yep, seems like it's how woohoolabs/yin works, thanks @paknahad :grin:

marcemira avatar Sep 08 '19 01:09 marcemira

I would appreciate any PR that makes configurable any part.

paknahad avatar Sep 08 '19 07:09 paknahad