예제 #1
0
 class SimpleDeserializer(Deserializer):
     foo = fields.FloatField(required=False)
예제 #2
0
 class SimpleDeserializer(Deserializer):
     foo = fields.IntegerField(required=True, min_value=0)
     bar = fields.FloatField(required=False)
예제 #3
0
    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