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')
class ComplicatedXMLNested3(JSONSchema): y = fields.List(fields.Int(), attribute='result_field6')
class SimpleJSON(JSONSchema): x = fields.Int()
class SimpleCSV(CSVSchema): x = fields.Int()
class SimpleXML(XMLSchema): x = fields.Int()