acknowledgement.py 1.54 KB
Newer Older
1 2 3 4
"""
    schemas: Acknowledgement status sent by the surface platform to report
    receipt of message.
"""
5 6 7 8 9
acknowledgement_schema = {
    "properties": {
        "message_ID": {
            "type": "string",
            "description": "Identifier of message received and executed with "
10
            + "success for mission plans sent by the Autonomy Engine.",
11 12 13 14 15
            "example": "b427003c-7bc8-11ed-a1eb-0242ac999999",
        },
        "status": {
            "type": "string",
            "description": "Highest level of acknowledgement. I.e. `c2_received`:"
16 17
            + " Received by C2, `c2_sent`: Sent from C2->Platform, `executed`:"
            + " Executed by platform",
18 19
            "example": "executed by platform",
        },
20
    },
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
    "required": ["message_ID", "status"],
}

# acknowledgement_schema = api.model(
#     "Acknowledgement",
#     {
#         "message": fields.Nested(
#             full_message_schema,
#             required=True,
#             description="Message header",
#         ),
#         "message_ID": fields.Integer(
#             required=True,
#             description="Identifier of message received and executed with "
#             + "success for mission plans sent by the Autonomy Engine.",
#             example=202,
#         ),
#         "status": fields.String(
#             required=True,
#             description="Highest level of acknowledgement. I.e. `c2_received`:"
#             + " Received by C2, `c2_sent`: Sent from C2->Platform, `executed`:"
#             + " Executed by platform",
#         ),
#     },
# )