[serializer] Extra attributes may throw exception when denormalize #19948
Labels
Feature
Good first issue
Ideal for your first contribution! (some Symfony experience may be required)
Serializer
During the denormalization of an object, the AbstractObjectNormalizer do not throw exception when an attribute is not in allowed. As a result I can denormalize an array to an object with not mapped attributes.
I'm currently designing an API.
Users are not allowed to send extra attributes that are not mapped to my class.
I want to throw an exception on this case.
Is it possible to implement this feature inside the Serializer component ?
The text was updated successfully, but these errors were encountered: