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
Hi guys,
i found a bug relating to the inclusion of related resources, when having a nested inclusion like /api/users?include=bookings.requestedBy
The root cause is the relationships of top level resource are not parsed when there is the same resource object appeared as relation data in the previous parsed resources
this is the related code https://github.com/laravel-json-api/neomerx-json-api/blob/master/src/Parser/Parser.php#L237
the top level resource contains relationships, but because this seenBefore logic it is ignored, so its relationships have not been parsed
Could anyone help to check that ?
thanks
The text was updated successfully, but these errors were encountered:
Hi guys,
i found a bug relating to the inclusion of related resources, when having a nested inclusion like
/api/users?include=bookings.requestedBy
The root cause is the relationships of top level resource are not parsed when there is the same resource object appeared as relation data in the previous parsed resources
this is the related code https://github.com/laravel-json-api/neomerx-json-api/blob/master/src/Parser/Parser.php#L237
the top level resource contains relationships, but because this seenBefore logic it is ignored, so its relationships have not been parsed
Could anyone help to check that ?
thanks
The text was updated successfully, but these errors were encountered: