-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
In file ValidationErrorDocument pointer is hardcoded to display attributes:
$pointer = '/data/attributes/'.$fieldError->getPropertyPath();
if i have validation error in my relationship then i will still receive in errors pointer to attributes, not to relationships.
actual result :
{ "jsonapi": { "version": "1.0" }, "errors": [ { "detail": "This value should not be blank.", "source": { "pointer": "/data/attributes/branch", "parameter": "Invalid Value" } } ] }
expected:
{ "jsonapi": { "version": "1.0" }, "errors": [ { "detail": "This value should not be blank.", "source": { "pointer": "/data/relationships/branch", "parameter": "Invalid Value" } } ] }
Metadata
Metadata
Assignees
Labels
No labels