Skip to content

fix(metadata): use operation shortName for resources without ApiResource - #8609

Merged
soyuka merged 4 commits into
api-platform:5.0from
soyuka:fix/operation-shortname-type
Sep 30, 2026
Merged

soyuka merged 4 commits into
api-platform:5.0from
soyuka:fix/operation-shortname-type

Conversation

@soyuka

@soyuka soyuka commented Sep 30, 2026 •

Copy link
Copy Markdown
Member
Q A
Branch? 5.0
Tickets ∅
License MIT
Doc PR ∅

A class declaring operations without #[ApiResource] got its class name as @type, the operation shortName was ignored since #7756 reads the resource-level shortName. Found while answering #8587.

Also splits operation-only classes into one resource per shortName, and resolves @type from the resource owning the operation.

@soyuka
soyuka force-pushed the fix/operation-shortname-type branch 2 times, most recently from caf3559 to 195d8eb Compare September 30, 2026 11:16
@soyuka
soyuka force-pushed the fix/operation-shortname-type branch from 195d8eb to 605fa9d Compare September 30, 2026 12:25
@soyuka
soyuka changed the base branch from 4.4 to 5.0 September 30, 2026 12:25
@soyuka
soyuka merged commit c092cd0 into api-platform:5.0 Sep 30, 2026
112 of 232 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