Closed tgallice closed 10 years ago
Thanks! I merged this in at 303b1631bef4b1fcb91833da62c208b2229e58db.
Actually, I'm not really sure anymore if it is a good idea to fail when hitting unknown property. Instead those could be silently ignored. What do think?
@xabbuh ignoring unknown properties would indeed be safer. Adding additional properties in an API response is generally not considered as a BC breaking change, so clients should accept them even if they are not able to use them.
Actually the Video Model don't have the
payload
property. The issue is when we want to transform a Json response with thepayload
attribute to a Video object. An error is raise by the Normalizer who doesn't find the setter