Closed aribouius closed 6 years ago
Fixes a bug introduced by https://github.com/jsonapi-suite/jsonapi_compliable/pull/77 that results in missing fields for one or more resources when the following conditions are met:
A
B
For example: /api/posts?include=author&extra_fields[posts]=comment_count&fields[author]=name
/api/posts?include=author&extra_fields[posts]=comment_count&fields[author]=name
Would yield the following payload:
{ "data": [ { "type": "posts", "attributes": { "comment_count": 1 // missing default fields! } } ], "included": [ { "type": "authors", "attributes": { "name": "John" } } ] }
Excellent, great catch! Glad we have a test for now now.
Fixes a bug introduced by https://github.com/jsonapi-suite/jsonapi_compliable/pull/77 that results in missing fields for one or more resources when the following conditions are met:
A
A
B
For example:
/api/posts?include=author&extra_fields[posts]=comment_count&fields[author]=name
Would yield the following payload: