Commit 5e76ca0
committed
feature symfony#57577 [FrameworkBundle][HttpKernel] Let
This PR was merged into the 7.2 branch.
Discussion
----------
[FrameworkBundle][HttpKernel] Let `RequestPayloadValueResolver` consider mapped argument type
| Q | A |
| --- | --- |
| Branch? | 7.2 |
| Bug fix?| no |
| New feature?| yes |
| Deprecations? | no |
| Issues | Fix symfony#54617 |
| License |MIT |
resolves symfony#54617
In case of sending empty request, `RequestPayloadValueResolver` should consider argument type. In case empty request is considered invalid, having attribute as non-nullable without default value will cause to perform denormalization using empty input resulting with proper error message in response.
Commits
-------
fc7d413 validate empty request MapQueryString/MapRequestPayload skips validation when empty request is sentRequestPayloadValueResolver consider mapped argument type (unixslayer)File tree
4 files changed
+809
-85
lines changed- src/Symfony
- Bundle/FrameworkBundle/Tests/Functional
- app/ApiAttributesTest
- Component/HttpKernel
- Controller/ArgumentResolver
- Tests/Controller/ArgumentResolver
4 files changed
+809
-85
lines changed
0 commit comments