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
6e9d52e9
Verified
Commit
6e9d52e9
authored
7 months ago
by
Dan Jones
Browse files
Options
Download
Plain Diff
Merge branch 'action-refactor-test' into 82-refactor-oneof-in-action-schema
parents
c37ec78c
83f38f4c
Pipeline
#233807
passed with stages
in 1 minute and 4 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
24 deletions
+38
-24
formats/mission_plan.py
formats/mission_plan.py
+23
-16
project/soar/swagger.json
project/soar/swagger.json
+15
-8
No files found.
formats/mission_plan.py
View file @
6e9d52e9
...
...
@@ -110,22 +110,6 @@ mission_plan_schema = {
"example"
:
"mission_plan"
,
"enum"
:
[
"mission_plan"
],
},
"autonomy_engine_plan_ID"
:
{
"oneOf"
:
[
{
"type"
:
"string"
,
"format"
:
"uuid"
,
"description"
:
"Unique identifier for this plan"
+
"generated by the Autonomy Engine"
,
},
{
"type"
:
"integer"
,
"description"
:
"Unique identifier for this plan"
+
"generated by the Autonomy Engine"
,
"example"
:
3
,
},
]
},
"platform_ID"
:
{
"type"
:
"string"
,
"description"
:
"Unique identifier for this platform"
,
...
...
@@ -143,6 +127,29 @@ mission_plan_schema = {
"items"
:
action_schema
,
},
},
"oneOf"
:
[
{
"properties"
:
{
"autonomy_engine_plan_ID"
:
{
"type"
:
"string"
,
"format"
:
"uuid"
,
"pattern"
:
"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"
,
"description"
:
"Unique identifier for this plan"
+
"generated by the Autonomy Engine"
,
},
},
},
{
"properties"
:
{
"autonomy_engine_plan_ID"
:
{
"type"
:
"integer"
,
"description"
:
"Unique identifier for this plan"
+
"generated by the Autonomy Engine"
,
"example"
:
3
,
},
},
},
],
"required"
:
[
"message_type"
,
"autonomy_engine_plan_ID"
,
...
...
This diff is collapsed.
Click to expand it.
project/soar/swagger.json
View file @
6e9d52e9
...
...
@@ -1528,21 +1528,28 @@
"type"
:
"object"
},
"mission_plan"
:
{
"
properties
"
:
{
"autonomy_engine_plan_ID"
:
{
"
oneOf
"
:
[
{
"
oneOf
"
:
[
{
"
properties
"
:
{
"autonomy_engine_plan_ID"
:
{
"description"
:
"Unique identifier for this plangenerated by the Autonomy Engine"
,
"format"
:
"uuid"
,
"pattern"
:
"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"
,
"type"
:
"string"
},
{
}
}
},
{
"properties"
:
{
"autonomy_engine_plan_ID"
:
{
"description"
:
"Unique identifier for this plangenerated by the Autonomy Engine"
,
"example"
:
3
,
"type"
:
"integer"
}
]
},
}
}
],
"properties"
:
{
"emergency"
:
{
"default"
:
false
,
"description"
:
"To indicate if this is an emergency. true = emergency and false = no emergency"
,
...
...
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