At
|
self::assertItHasAttributeMember($data, $errorBag); |
, each request is validated to ensure it has an
attributes member. However, the
JSON API spec says resource objects MAY contain an
attributes member. There are cases where you might want to leave it out of a request, as when you don't want to modify any attributes but do have meta properties to PATCH.
At
php-json-api/src/Server/Data/DataAssertions.php
Line 38 in f72538b
attributesmember. However, the JSON API spec says resource objects MAY contain anattributesmember. There are cases where you might want to leave it out of a request, as when you don't want to modify any attributes but do have meta properties to PATCH.