-
Notifications
You must be signed in to change notification settings - Fork 20
Closed
Description
See: http://jsonapi.org/format/#crud-creating which contains the following example:
{
"data": {
"type": "photos",
"attributes": {
"title": "Ember Hamster",
"src": "http://example.com/images/productivity.png"
},
"relationships": {
"photographer": {
"data": { "type": "people", "id": "9" }
}
}
}
}
The JsonApiClient\Utils\Helper::isValid will fail on this because of line 76 of ResourceItem.php, which requires a resource id:
if ( ! property_exists($object, 'id') )
{
throw new ValidationException('A resource object MUST contain an id');
}
This check might be unnecessary.
Metadata
Metadata
Assignees
Labels
No labels