Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Communications Backbone System
backbone-message-format
Commits
6517867a
Commit
6517867a
authored
2 years ago
by
Trishna Saeharaseelan
Browse files
Options
Download
Email Patches
Plain Diff
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
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
10 deletions
+16
-10
examples/autonomy_engine_adapter/mission_plan_encoded.json
examples/autonomy_engine_adapter/mission_plan_encoded.json
+1
-0
examples/autonomy_engine_adapter/observation_encoded.json
examples/autonomy_engine_adapter/observation_encoded.json
+2
-1
examples/autonomy_engine_adapter/platform_status_encoded.json
...ples/autonomy_engine_adapter/platform_status_encoded.json
+2
-1
formats/encoded.py
formats/encoded.py
+5
-2
project/soar/swagger.json
project/soar/swagger.json
+6
-6
No files found.
examples/autonomy_engine_adapter/mission_plan_encoded.json
View file @
6517867a
...
...
@@ -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
}
}
This diff is collapsed.
Click to expand it.
examples/autonomy_engine_adapter/observation_encoded.json
View file @
6517867a
...
...
@@ -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
}
}
This diff is collapsed.
Click to expand it.
examples/autonomy_engine_adapter/platform_status_encoded.json
View file @
6517867a
...
...
@@ -10,8 +10,9 @@
},
"payload"
:
{
"message_type"
:
"platform_status_encoded"
,
"data"
:
"
SDQke4uwyP/YQQAgAhA2AND/nu8nvQAAAAAAAAAACtejPa5HHUGkcBlB/tRYQW3nez5
HWYFBAAD+zwBySUAAAADVek72v1N2lUQAAAABAQAAAAAAAAAAAAAAAAAAIAAAAQAAAAAAAAAA9P2cP166ab+9cg=="
,
"data"
:
"HWYFBAAD+zwBySUAAAADVek72v1N2lUQAAAABAQAAAAAAAAAAAAAAAAAAIAAAAQAAAAAAAAAA9P2cP166ab+9cg=="
,
"file_name"
:
"ah1_03837434286438.sbd"
,
"mime_type"
:
"application/gzip"
,
"is_binary"
:
true
}
}
This diff is collapsed.
Click to expand it.
formats/encoded.py
View file @
6517867a
...
...
@@ -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
,
},
},
...
...
This diff is collapsed.
Click to expand it.
project/soar/swagger.json
View file @
6517867a
...
...
@@ -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"
}
},
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment