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
Description
In the AbstractItemNormalizer the exception thrown by the Serializer is caught and wrapped into a new exception with The input data is misformatted. as text, obscuring any hint to what the original problem is.
How to reproduce
Try denormalizing something as int when sending it a string or something
Possible Solution
Expose the original serializer error message as well, at least in the development version
Additional Context
In my case it was obscuring this: The type of the \"votingPower\" attribute for class \"App\\Dto\\PollVoteConfigDto\" must be one of \"int\", \"null\" (\"string\" given). which is infinitely more useful than The input data is misformatted.
The text was updated successfully, but these errors were encountered:
API Platform version(s) affected: 4.0.12
Description
In the AbstractItemNormalizer the exception thrown by the Serializer is caught and wrapped into a new exception with
The input data is misformatted.
as text, obscuring any hint to what the original problem is.How to reproduce
Try denormalizing something as int when sending it a string or something
Possible Solution
Expose the original serializer error message as well, at least in the development version
Additional Context
In my case it was obscuring this:
The type of the \"votingPower\" attribute for class \"App\\Dto\\PollVoteConfigDto\" must be one of \"int\", \"null\" (\"string\" given).
which is infinitely more useful thanThe input data is misformatted.
The text was updated successfully, but these errors were encountered: