示例#1
0
 class DealershipCarBrands(StandardSchema):
     n_brands = fields.Float(required=True)
     brands = fields.List(CarBrand(), required=True)
示例#2
0
    class PolyList(StandardSchema):

        polys = fields.List(PolyA())
示例#3
0
    class PolyList(StandardSchema):

        polys = fields.List(fields.Schema(Poly, exclude=['footest', 'bartest']))
示例#4
0
class Movie(Schema):

    title = fields.String()
    released = fields.Date()
    cast = fields.List(Actor())