php-json-api icon indicating copy to clipboard operation
php-json-api copied to clipboard

DataAssertions requires an Attributes member

Open GregoryAveryWeir opened this issue 8 years ago • 0 comments

At https://github.com/nilportugues/php-json-api/blob/f72538b770f71c49fd75e4637d782edba1f5cbb9/src/Server/Data/DataAssertions.php#L38 , 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.

GregoryAveryWeir avatar Sep 20 '17 16:09 GregoryAveryWeir