-
Notifications
You must be signed in to change notification settings - Fork 35
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
make "meta included false" on relationships optional? #109
Comments
The reason is that the spec states:
If you do provide a |
I see something different in the spec. If you scroll up to https://jsonapi.org/format/#document-resource-objects (screenshot attached) it says saying you must include From looking at "MAY" in https://tools.ietf.org/html/rfc2119 what you're doing is perhaps fine, but it still seems unnecessary and is breaking ember-data and I think led me to post-process the json to delete those keys. |
That would make for a valid payload in general, but not for a valid response unless the relationship in question was explicitly discarded via sparse fieldsets. |
Valid according to what? Could you point that out in the spec? |
Yeah I have to side with @nruth on this one. The I'm not against it always existing, but the way it's implemented in this library is actually broken and causing bugs. I've opened a related issue here and a PR to fix it by just removing it altogether. My reasonings are explained in the other issue and I'm open for debate over there. |
like in #90
This causes issues with some client libraries (throwing away previously loaded relationship data), and generally seems unnecessary. Is there a compelling reason for this being on by default and having no way to turn it off?
The text was updated successfully, but these errors were encountered: