You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Per spec: http://jsonapi.org/format/#document-resource-object-relationshipsA “relationship object” MUST contain at least one of the following: links, data, meta. Implementations I've seen in the past will have "posts": { "data": null } } within the relationships object if the relation doesn't exist/isn't provided.
Per spec: http://jsonapi.org/format/#document-resource-object-relationships
A “relationship object” MUST contain at least one of the following: links, data, meta
. Implementations I've seen in the past will have"posts": { "data": null } }
within the relationships object if the relation doesn't exist/isn't provided.However with schema like
my json comes out like
I'm saying it should be like
I looked through the source to see if I could make a PR but I couldn't find where this is happening... It seems like at the very least from https://github.com/danivek/json-api-serializer/blob/master/lib/JSONAPISerializer.js#L582 it should have
data: undefined
The text was updated successfully, but these errors were encountered: