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
09deecde
Commit
09deecde
authored
2 months ago
by
Trishna Saeharaseelan
Browse files
Options
Download
Email Patches
Plain Diff
fix(autonomy_engine_control): oneof field
parent
982cde9b
dev
master
v2.0.0
v2.0.0-beta.11
3 merge requests
!59
Release v2.0.0
,
!57
Add new Autonomy message type
,
!36
Resolve "Create temporary mas-dt branch for initial schema refactor"
Pipeline
#261982
failed with stages
in 1 minute and 20 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
44 deletions
+44
-44
formats/autonomy_engine_control.py
formats/autonomy_engine_control.py
+21
-21
generate_schema_config.py
generate_schema_config.py
+1
-1
project/soar/swagger.json
project/soar/swagger.json
+22
-22
No files found.
formats/autonomy_engine_control.py
View file @
09deecde
...
@@ -12,27 +12,6 @@ autonomy_engine_control_schema = {
...
@@ -12,27 +12,6 @@ autonomy_engine_control_schema = {
"example"
:
"autonomy"
,
"example"
:
"autonomy"
,
"enum"
:
[
"autonomy"
],
"enum"
:
[
"autonomy"
],
},
},
"oneOf"
:
[
{
"properties"
:
{
"planning_config_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 (uuid) for this specification version generated"
,
},
},
},
{
"properties"
:
{
"planning_config_ID"
:
{
"type"
:
"integer"
,
"description"
:
"Unique identifier (uuid) for this specification version generated"
,
"example"
:
2
,
},
},
},
],
"state"
:
{
"state"
:
{
"type"
:
"string"
,
"type"
:
"string"
,
"enum"
:
[
"start"
,
"pause"
,
"stop"
],
"enum"
:
[
"start"
,
"pause"
,
"stop"
],
...
@@ -40,5 +19,26 @@ autonomy_engine_control_schema = {
...
@@ -40,5 +19,26 @@ autonomy_engine_control_schema = {
"example"
:
"stop"
,
"example"
:
"stop"
,
},
},
},
},
"oneOf"
:
[
{
"properties"
:
{
"planning_config_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 (uuid) for this specification version generated"
,
},
},
},
{
"properties"
:
{
"planning_config_ID"
:
{
"type"
:
"integer"
,
"description"
:
"Unique identifier (uuid) for this specification version generated"
,
"example"
:
2
,
},
},
},
],
"required"
:
[
"message_type"
,
"planning_config_ID"
],
"required"
:
[
"message_type"
,
"planning_config_ID"
],
}
}
This diff is collapsed.
Click to expand it.
generate_schema_config.py
View file @
09deecde
...
@@ -67,7 +67,7 @@ def get_swagger_config(reload=False):
...
@@ -67,7 +67,7 @@ def get_swagger_config(reload=False):
"MESSAGE"
:
message_schema
,
"MESSAGE"
:
message_schema
,
"header"
:
message_header
,
"header"
:
message_header
,
"payload"
:
payload_schema
,
"payload"
:
payload_schema
,
"autonomy"
:
autonomy_engine_control_schema
,
"autonomy
_engine_control
"
:
autonomy_engine_control_schema
,
"mission_plan"
:
mission_plan_schema
,
"mission_plan"
:
mission_plan_schema
,
"mission_plan_encoded"
:
mission_plan_encoded_schema
,
"mission_plan_encoded"
:
mission_plan_encoded_schema
,
"observation"
:
observation_schema
,
"observation"
:
observation_schema
,
...
...
This diff is collapsed.
Click to expand it.
project/soar/swagger.json
View file @
09deecde
...
@@ -111,7 +111,28 @@
...
@@ -111,7 +111,28 @@
],
],
"type"
:
"object"
"type"
:
"object"
},
},
"autonomy"
:
{
"autonomy_engine_control"
:
{
"oneOf"
:
[
{
"properties"
:
{
"planning_config_ID"
:
{
"description"
:
"Unique identifier (uuid) for this specification version generated"
,
"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"
:
{
"planning_config_ID"
:
{
"description"
:
"Unique identifier (uuid) for this specification version generated"
,
"example"
:
2
,
"type"
:
"integer"
}
}
}
],
"properties"
:
{
"properties"
:
{
"message_type"
:
{
"message_type"
:
{
"description"
:
"Type of message"
,
"description"
:
"Type of message"
,
...
@@ -121,27 +142,6 @@
...
@@ -121,27 +142,6 @@
"example"
:
"autonomy"
,
"example"
:
"autonomy"
,
"type"
:
"string"
"type"
:
"string"
},
},
"oneOf"
:
[
{
"properties"
:
{
"planning_config_ID"
:
{
"description"
:
"Unique identifier (uuid) for this specification version generated"
,
"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"
:
{
"planning_config_ID"
:
{
"description"
:
"Unique identifier (uuid) for this specification version generated"
,
"example"
:
2
,
"type"
:
"integer"
}
}
}
],
"state"
:
{
"state"
:
{
"description"
:
"Autonomy engine instruction to start or stop model"
,
"description"
:
"Autonomy engine instruction to start or stop model"
,
"enum"
:
[
"enum"
:
[
...
...
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