class SimpleDeserializer(Deserializer): foo = fields.FloatField(required=False)
class SimpleDeserializer(Deserializer): foo = fields.IntegerField(required=True, min_value=0) bar = fields.FloatField(required=False)
class SimpleDeserializer(Deserializer): foo = fields.IntegerField(required=True, min_value=0) bar = fields.FloatField(required=False) def post_clean_bar(self, value): return value * 2