Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid sending JSON:API version on payload #46

Open
marcemira opened this issue Sep 6, 2019 · 3 comments
Open

Avoid sending JSON:API version on payload #46

marcemira opened this issue Sep 6, 2019 · 3 comments

Comments

@marcemira
Copy link

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

@paknahad
Copy link
Owner

paknahad commented Sep 7, 2019

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

@marcemira
Copy link
Author

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

@paknahad
Copy link
Owner

paknahad commented Sep 8, 2019

I would appreciate any PR that makes configurable any part.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants