Commit 6517867a authored by Trishna Saeharaseelan's avatar Trishna Saeharaseelan
Browse files

refactor(encoded schema): update mime_type examples and description for is_binary

parent 6da845e3
Pipeline #112283 passed with stages
in 1 minute and 40 seconds
......@@ -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
}
}
......@@ -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
}
}
......@@ -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
}
}
......@@ -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,
},
},
......
......@@ -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"
}
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment