Exemple #1
0
class UploadResultSchema(Schema):
    name = fields.String()
    status = fields.Integer()
    flight = fields.Nested(FlightSchema, exclude=('igcFile.owner', ))
    trace = fields.Nested(TraceSchema)
    airspaces = fields.Nested(AirspaceSchema, attribute='airspace', many=True)
    cacheKey = fields.String(attribute='cache_key')
Exemple #2
0
class UploadResultSchema(Schema):
    name = fields.String()
    status = fields.Integer()
    flight = fields.Nested(FlightSchema, exclude=("igcFile.owner",))
    trace = fields.Nested(TraceSchema)
    airspaces = fields.Nested(
        AirspaceSchema, attribute="airspace", many=True, exclude=("shape",)
    )
    cacheKey = fields.String(attribute="cache_key")