diff --git a/examples/autonomy_engine_adapter/mission_plan_encoded.json b/examples/autonomy_engine_adapter/mission_plan_encoded.json index e0a213ac4835c2452c6adec15d1332d1efb32353..bfd489d36cc428717da3d558d84e460e28a96cf9 100644 --- a/examples/autonomy_engine_adapter/mission_plan_encoded.json +++ b/examples/autonomy_engine_adapter/mission_plan_encoded.json @@ -12,6 +12,7 @@ "message_type": "mission_plan_encoded", "data": "SDQke4uwyP/YQQAgAhA2AND/nu8nvQAAAAAAAAAACtejPa5HHUGkcBlB/tRYQW3nez5HWYFBAAD+zwBySUAAAADVek72v1N2lUQAAAABAQAAAAAAAAAAAAAAAAAAIAAAAQAAAAAAAAAA9P2cP166ab+9cg==", "file_name": "ah1_03837434286438.sbd", + "mime_type": "application/gzip", "is_binary": true } } diff --git a/examples/autonomy_engine_adapter/observation_encoded.json b/examples/autonomy_engine_adapter/observation_encoded.json index 5305a1f9f6945c28fc9409f9c2494f6729ef829c..1bf91626104bee549b14daeb0e36bfd67193006d 100644 --- a/examples/autonomy_engine_adapter/observation_encoded.json +++ b/examples/autonomy_engine_adapter/observation_encoded.json @@ -11,7 +11,8 @@ "payload": { "message_type": "observation_encoded", "data": "T1N2lUQAAAABAQAAAAAAAAAAAAAAAAAAIAAAAQAAAAAAAAAA9P2cP166ab+9cg==", - "file_name": "ecosub1_200002114.txt", + "file_name": "ecosub1_200002114.bin", + "mime_type": "application/gzip", "is_binary": true } } diff --git a/examples/autonomy_engine_adapter/platform_status_encoded.json b/examples/autonomy_engine_adapter/platform_status_encoded.json index 52ec489977528bc6353a5102ebc48a825bb54a9a..0b121542afe39804eb4189b7c7e0ebf12e4c0f36 100644 --- a/examples/autonomy_engine_adapter/platform_status_encoded.json +++ b/examples/autonomy_engine_adapter/platform_status_encoded.json @@ -10,8 +10,9 @@ }, "payload": { "message_type": "platform_status_encoded", - "data": "SDQke4uwyP/YQQAgAhA2AND/nu8nvQAAAAAAAAAACtejPa5HHUGkcBlB/tRYQW3nez5HWYFBAAD+zwBySUAAAADVek72v1N2lUQAAAABAQAAAAAAAAAAAAAAAAAAIAAAAQAAAAAAAAAA9P2cP166ab+9cg==", + "data": "HWYFBAAD+zwBySUAAAADVek72v1N2lUQAAAABAQAAAAAAAAAAAAAAAAAAIAAAAQAAAAAAAAAA9P2cP166ab+9cg==", "file_name": "ah1_03837434286438.sbd", + "mime_type": "application/gzip", "is_binary": true } } diff --git a/formats/encoded.py b/formats/encoded.py index a8b244a132611a44e38968b06b7c7a960c5804e7..1818c1be580fa47ab75fc555a1af672fd32902d7 100644 --- a/formats/encoded.py +++ b/formats/encoded.py @@ -34,11 +34,14 @@ encoded_schema = { "mime_type": { "type": "string", "description": "MIME type", - "example": "", # TODO: Add example + "example": "application/gzip", }, "is_binary": { "type": "boolean", - "description": "Base64 encrypted binary data", + "description": ( + "True if the data field contains binary format data encoded as base64." + + " False if the data field contains ascii content such as NMEA." + ), "example": True, }, }, diff --git a/project/soar/swagger.json b/project/soar/swagger.json index b6f32e7aff3085b86a3dd7cb3e30f119ee29aeca..dcaee9e4e1ace07cfc40b597af0068f70d858c07 100644 --- a/project/soar/swagger.json +++ b/project/soar/swagger.json @@ -207,7 +207,7 @@ "type":"string" }, "is_binary":{ - "description":"Base64 encrypted binary data", + "description":"True if the data field contains binary format data encoded as base64. False if the data field contains ascii content such as NMEA.", "example":true, "type":"boolean" }, @@ -223,7 +223,7 @@ }, "mime_type":{ "description":"MIME type", - "example":"", + "example":"application/gzip", "type":"string" } }, @@ -311,7 +311,7 @@ "type":"string" }, "is_binary":{ - "description":"Base64 encrypted binary data", + "description":"True if the data field contains binary format data encoded as base64. False if the data field contains ascii content such as NMEA.", "example":true, "type":"boolean" }, @@ -327,7 +327,7 @@ }, "mime_type":{ "description":"MIME type", - "example":"", + "example":"application/gzip", "type":"string" } }, @@ -795,7 +795,7 @@ "type":"string" }, "is_binary":{ - "description":"Base64 encrypted binary data", + "description":"True if the data field contains binary format data encoded as base64. False if the data field contains ascii content such as NMEA.", "example":true, "type":"boolean" }, @@ -811,7 +811,7 @@ }, "mime_type":{ "description":"MIME type", - "example":"", + "example":"application/gzip", "type":"string" } },