acknowledgement.py 1.12 KB
Newer Older
1 2 3 4
"""
    schemas: Acknowledgement status sent by the surface platform to report
    receipt of message.
"""
5
from formats import abstract_schema
6

7
acknowledgement_schema = {
8
    "type": "object",
9
    "properties": {
10
        "acknowledged_message_ID": {
11 12
            "type": "string",
            "description": "Identifier of message received and executed with "
13
            + "success for mission plans sent by the Autonomy Engine.",
14
            "example": "02125022255-7bc8-11ed-a1eb-0242ac999999",
15 16 17
        },
        "status": {
            "type": "string",
18
            "enum": ["c2_received", "operator_approved_and_sent", "executed"],
19
            "description": "Highest level of acknowledgement. I.e."
20 21 22
            + " `c2_received`: Received by C2, `operator_approved_and_sent`"
            + " : Approved by operator and sent from C2->Platform,"
            + " `executed`: Executed by platform",
23 24
            "example": "executed by platform",
        },
25
    },
26
    "required": ["acknowledged_message_ID", "status"],
27
}
28

29 30
full_acknowledgement_schema = abstract_schema
full_acknowledgement_schema["properties"]["payload"] = acknowledgement_schema