Skip to content

feat(jsonapi): spec-compliant PATCH conflicts and member names - #8752

Merged
soyuka merged 2 commits into
api-platform:mainfrom
soyuka:feat/jsonapi-strict-members
Oct 22, 2026
Merged

soyuka merged 2 commits into
api-platform:mainfrom
soyuka:feat/jsonapi-strict-members

Conversation

@soyuka

@soyuka soyuka commented Oct 22, 2026

Copy link
Copy Markdown
Member
Q A
Branch? main
Tickets Closes #8750, closes #8749
License MIT
Doc PR api-platform/docs#...

A PATCH/PUT whose data.id does not match the endpoint now gets a 409, and strict_resource_type also checks data.type on PATCH and PUT. The new opt-in jsonapi.strict_member_names exposes id/type as resourceId/resourceType instead of the invalid _id/_type, and stops renaming links/relationships/included.

Tests: tests/Functional/JsonApi/UpdateConflictTest.php, tests/Functional/JsonApi/ResourceObjectMemberNamesTest.php.

@soyuka
soyuka force-pushed the feat/jsonapi-strict-members branch from 037ec41 to a82ba0f Compare October 22, 2026 08:43
@soyuka
soyuka merged commit 9090a0d into api-platform:main Oct 22, 2026
109 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

1 participant