Skip to content

fix(jsonapi): add status and title, fix pointer - #8755

Merged
soyuka merged 1 commit into
api-platform:5.0from
soyuka:fix/jsonapi-errors-50
Oct 22, 2026
Merged

soyuka merged 1 commit into
api-platform:5.0from
soyuka:fix/jsonapi-errors-50

Conversation

@soyuka

@soyuka soyuka commented Oct 22, 2026

Copy link
Copy Markdown
Member
Q A
Branch? 5.0
Tickets Closes #8748
License MIT
Doc PR

JSON:API validation error objects had no status/title, and source.pointer was data/attributes/x instead of the JSON Pointer /data/attributes/x. They now carry the response status (exceptionToStatus included, 422 by default), a title, and a leading / on the pointer.

Tests: tests/Functional/JsonApi/ErrorObjectMembersTest.php (incl. ValidationException mapped to 400), tests/Functional/JsonApi/ErrorTest.php::testValidationErrorRendersJsonApiPointer.

@soyuka
soyuka force-pushed the fix/jsonapi-errors-50 branch from 10191d9 to 957624b Compare October 22, 2026 08:43
@soyuka
soyuka merged commit acc6bfc into api-platform:5.0 Oct 22, 2026
116 of 117 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant