You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is because the $type parameter passed to Serializer::denormalize() in RequestPayloadValueResolver is taken from ArgumentMetadata and the type there is taken from \ReflectionParameter so no DocBlocks are considered.
I was checking out if I can override the type with a serializer's context options (you can pass that to MapRequestPayload attribute) but it looks like it's not possible.
Example
No response
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Description
I've noticed that MapRequestPayload cannot handle the
array
type hint.Request payload:
This is because the
$type
parameter passed to Serializer::denormalize() in RequestPayloadValueResolver is taken from ArgumentMetadata and the type there is taken from \ReflectionParameter so no DocBlocks are considered.I was checking out if I can override the type with a serializer's context options (you can pass that to MapRequestPayload attribute) but it looks like it's not possible.
Example
No response
The text was updated successfully, but these errors were encountered: