Enables your PHP application to expose its entities as REST resources using the feature rich JSON:API specification as API. How and to whom your entities are exposed is highly customizable while minimizing boilerplate code.
MIT License
2
stars
1
forks
source link
Ensure correct return of the `included` field #157
Currently the response body will have an included field present if fractal provided one in its transformed data. However, it needs to be evaluated if this presence already complies with the JSON:API specification, or if other information must be considered too, e.g. the presence of the include parameter in the request or default includes in combination with sparse fieldsets.
There may be also a simple NOT bug in the if condition.
Currently the response body will have an
included
field present if fractal provided one in its transformed data. However, it needs to be evaluated if this presence already complies with the JSON:API specification, or if other information must be considered too, e.g. the presence of theinclude
parameter in the request or default includes in combination with sparse fieldsets.There may be also a simple NOT bug in the
if
condition.