Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Serializer] Fix throwing right exception in ArrayDenormalizer with invalid type #47169

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
merged 1 commit into from
Aug 3, 2022

Conversation

norkunas
Copy link
Contributor

@norkunas norkunas commented Aug 3, 2022

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets N/A
License MIT
Doc PR N/A

Currently it's possible to catch most errors with serializer when using DenormalizerInterface::COLLECT_DENORMALIZATION_ERRORS => true but there was no tests trying to deserialize list of objects with an invalid value.

So it failed my expectations, because in an api using serializer, consumers could get 500 instead of the proper response, therefore I've submit this as a bugfix.

@norkunas norkunas force-pushed the fix-array-denormalizer branch from cfef3ac to 6337bfd Compare August 3, 2022 05:36
@nicolas-grekas nicolas-grekas changed the base branch from 6.2 to 5.4 August 3, 2022 06:43
@nicolas-grekas nicolas-grekas modified the milestones: 6.2, 5.4 Aug 3, 2022
@fabpot
Copy link
Member

fabpot commented Aug 3, 2022

Thank you @norkunas.

@NorthBlue333
Copy link

Fixes #46649.

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

Successfully merging this pull request may close these issues.

5 participants