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
As stated in the JSON API specs a resource linkage object may have these values:
Resource linkage MUST be represented as one of the following:
null for empty to-one relationships.
an empty array ([]) for empty to-many relationships.
a single resource identifier object for non-empty to-one relationships.
an array of resource identifier objects for non-empty to-many relationships.
As stated in the JSON API specs a resource linkage object may have these values:
After the json-api-vanilla parsing is return an
Object
instead.To reproduce:
Change the
example.json:84
from"data": { "type": "people", "id": "9" }
to
"data": null
Add the following test:
Result:
We have noticed the fallback creation of an object here:
Removing that line make all specs green but maybe it will results in other "untested" issues.
The text was updated successfully, but these errors were encountered: