Skip to content

Comments

fix(serializer): prevent api_platform_output context from leaking to nested non-resource objects#7787

Open
soyuka wants to merge 1 commit intoapi-platform:4.2from
soyuka:fix/enum-output-dto-serialization
Open

fix(serializer): prevent api_platform_output context from leaking to nested non-resource objects#7787
soyuka wants to merge 1 commit intoapi-platform:4.2from
soyuka:fix/enum-output-dto-serialization

Conversation

@soyuka
Copy link
Member

@soyuka soyuka commented Feb 21, 2026

Stores the output/input class in a dedicated context key (api_platform_output_class / api_platform_input_class) instead of relying on resource_class, which gets mutated when processing nested property contexts (e.g. enums, anonymous resources).

Fixes #7785

…nested non-resource objects

Stores the output/input class in a dedicated context key (api_platform_output_class /
api_platform_input_class) instead of relying on resource_class, which gets mutated
when processing nested property contexts (e.g. enums, anonymous resources).

Fixes api-platform#7785

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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