Skip to content

Why is normalization context not set for POST and collection routes? #2829

Description

@tezvi

Hi!

This issue is related to b1590b8
commited by @teohhanhui, help would be appreciated dude.

This line https://github.com/api-platform/core/blame/master/src/EventListener/ReadListener.php#L66 is preventing building of full request attributes normalization context parameters.

I'm depending on $request->attributes->set('_api_normalization_context', $normalizationContext); which is set further bellow.
What is the reason to skip setup of normalization context when POST and collection_operation_name is set?

I'm using custom controllers here and there for handling POST requests and using deserializer group from request attributes when injecting DTO objects in controller action method (using Request ParamConverter).

Thanks for your input!

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions