Skip to content

fix(symfony): process parameters declared in resource files - #8625

Open
wuchen90 wants to merge 1 commit into
api-platform:5.0from
wuchen90:fix/parameter-factories-after-extractors
Open

wuchen90 wants to merge 1 commit into
api-platform:5.0from
wuchen90:fix/parameter-factories-after-extractors

Conversation

@wuchen90

@wuchen90 wuchen90 commented Oct 1, 2026

Copy link
Copy Markdown
Contributor
Q A
Branch? 5.0
Tickets Fixes #7655
License MIT

The parameter metadata factories (core, validator, Doctrine ORM and ODM) decorated the resource metadata collection factory with a higher priority than the YAML, XML, PHP file and concerns factories (800), so they only saw parameters declared with attributes. Parameters declared in resource files got no property default, no filter schema or OpenAPI parameters and no Doctrine nested property information, which broke modern filters on nested properties with a semantical error.

Decorate them right below the file factories instead, keeping their relative order.

The parameter metadata factories (core, validator, Doctrine ORM and ODM)
decorated the resource metadata collection factory with a higher priority
than the YAML, XML, PHP file and concerns factories (800), so they only
saw parameters declared with attributes. Parameters declared in resource
files got no property default, no filter schema or OpenAPI parameters
and no Doctrine nested property information, which broke modern filters
on nested properties with a semantical error.

Decorate them right below the file factories instead, keeping their
relative order.

Fixes api-platform#7655
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