JMSSerializerBundle
JMSSerializerBundle copied to clipboard
Validation with deserialize
I noticed that when you try to deserialize data in a model, if the type is not the same as expected in the @Type()
annotation, the bundle just set basic value (such as 0
etc).
Is there a way to let the bundle throws exceptions when this situation happens?
In practice it would be great if it would have the same logic as ->bind()->isvalid()
maybe with the help of validator component
Any suggestion?