lode / jsonapi

Human-friendly library to implement JSON:API without needing to know the specification.

Home Page:https://packagist.org/packages/alsvanzelf/jsonapi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Keep 'relationships' and 'meta' for included resources

lode opened this issue · comments

As noted by @Pierozi in #17 (comment), we now unset relationships and meta when adding an included resource: https://github.com/lode/jsonapi/blob/master/src/response.php#L255. This should not be done. Resource objects inside the included array should just be the full representation.