예제 #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')
예제 #2
0
파일: flights.py 프로젝트: vdrok/skylines
class NearFlightSchema(Schema):
    flight = fields.Nested(FlightSchema,
                           only=('id', 'pilot', 'pilotName', 'copilot',
                                 'copilotName', 'model', 'registration',
                                 'competitionId', 'igcFile'))

    times = fields.Nested(MeetingTimeSchema, many=True)
예제 #3
0
파일: upload.py 프로젝트: yataOrg/skylines
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")
예제 #4
0
파일: flights.py 프로젝트: yataOrg/skylines
class NearFlightSchema(Schema):
    flight = fields.Nested(
        FlightSchema,
        only=(
            "id",
            "pilot",
            "pilotName",
            "copilot",
            "copilotName",
            "model",
            "registration",
            "competitionId",
            "igcFile",
        ),
    )

    times = fields.Nested(MeetingTimeSchema, many=True)