JMSSerializerBundle icon indicating copy to clipboard operation
JMSSerializerBundle copied to clipboard

Validation with deserialize

Open agiuliano opened this issue 10 years ago • 0 comments

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?

agiuliano avatar May 05 '14 09:05 agiuliano