Exemplo n.º 1
0
class ComplicatedJSON(JSONSchema):
    r1 = fields.Int(required=True, attribute='result_field1', data_key='X')
    r2 = fields.List(fields.Int(),
                     required=True,
                     attribute='result_field2',
                     data_key='Y')
    nested = fields.Nested(ComplicatedJSONNested,
                           many=True,
                           attribute='result_field3',
                           data_key='Z')
Exemplo n.º 2
0
class ComplicatedXMLNested3(JSONSchema):
    y = fields.List(fields.Int(), attribute='result_field6')
Exemplo n.º 3
0
class SimpleJSON(JSONSchema):
    x = fields.Int()
Exemplo n.º 4
0
class SimpleCSV(CSVSchema):
    x = fields.Int()
Exemplo n.º 5
0
class SimpleXML(XMLSchema):
    x = fields.Int()