Skip to content

Fix default serializer context not passed to CollectionNormalizer #5305

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

ddeboer
Copy link
Contributor

@ddeboer ddeboer commented Jan 3, 2023

Q A
Branch? 3.0
Tickets
License MIT
Doc PR

Fix any serializer.default_context configuration not being passed to the CollectionNormalizer.

For example, because serializer.default_context.preserve_empty_objects: true is not passed, the serialization of empty objects is broken.

@soyuka soyuka merged commit 6f9289e into api-platform:3.0 Jan 5, 2023
@ddeboer ddeboer deleted the fix-serializer-default-context-not-passed branch January 5, 2023 08:59
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.

2 participants