Skip to content

[Serializer] Pass a key property to NotNormalizableValueException #43999

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

Closed
shude opened this issue Nov 10, 2021 · 2 comments
Closed

[Serializer] Pass a key property to NotNormalizableValueException #43999

shude opened this issue Nov 10, 2021 · 2 comments

Comments

@shude
Copy link
Contributor

shude commented Nov 10, 2021

Description

When we try to denormalize an object with type-hinted property with builtin type and it does not match we get an NotNormalizableValueException with message that contains a field name. Sometimes we want to get key of that field.
I suggest adding a property key to NotNormalizableValueException and just set it in ArrayDenormalizer.

Example

No response

@xabbuh
Copy link
Member

xabbuh commented Nov 11, 2021

Would you like to give it a try?

@shude
Copy link
Contributor Author

shude commented Nov 12, 2021

It just solved in #42502

@shude shude closed this as completed Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants