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
The text was updated successfully, but these errors were encountered:
shrink
changed the title
When hydrating, if a resource ID is "0", that resource is not available in the results
Resources with an ID of "0" disappear when using ClassHydrator
Dec 3, 2017
As far as I can tell from the spec the only requirement for an ID is that it's a string, there are no limitations otherwise, so an ID of 0 is valid.
Example JSON-API response from jsonapi.org where a comment has an ID set to
0
.You would expect to see:
Actually see:
The text was updated successfully, but these errors were encountered: