-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Empty record's relationships serialization and JSONAPI specs #5173
Comments
It seems that now (since ember-data 2.14.4) you'll have to explicitly set the "empty" relationship. For instance:
|
@fabriciotav thanks for the clear delineation. I should be able to address this rather easily in #5410 |
I suspect this and #5100 are manifestations of the same issue. |
This was likely related but I don't think it was the root cause: #5466 |
A number of fixes were landed to ensure we always serialize as much as we should, if more are needed please open a new ticket. That said, for most situations the answer is to customize the serialization to fit your API. |
thanks, it helps me to resolve warning. |
Hi,
Some changes have been recently made on record's relationships serialization (see #5048)
As said,
createRecord
should only setup relationships with data, which sounds logic but it also causes some issues related to the JSONAPI specs.As mentioned here : http://jsonapi.org/format/#document-resource-object-linkage
In result, my JSONAPI handler reject requests and is asking for relationships to be present in the payload, empty or not.
@hjdivad @stefanpenner @runspired @bmac Maybe I'm missing something, could you please clarify this ?
Thanks !
The text was updated successfully, but these errors were encountered: