Commit c1cffe61 authored by Trishna Saeharaseelan's avatar Trishna Saeharaseelan
Browse files

fix: payload one ofs

3 merge requests!59Release v2.0.0,!57Add new Autonomy message type,!36Resolve "Create temporary mas-dt branch for initial schema refactor"
Pipeline #262168 passed with stages
in 2 minutes and 4 seconds
...@@ -13,7 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ...@@ -13,7 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Added ### Added
- New message type "autonomy". Long term plan is to integrate this as an object into the planning configuration schema, where if an operation has autonomy, the metadata, configurations, any instructions / default settings shall be within this message structure section. - New message type "autonomy_engine_control". Long term plan is to integrate this as an object into the planning configuration schema, where if an operation has autonomy, the metadata, configurations, any instructions / default settings shall be within this message structure section.
- Additional_data field to platform_status to input any other data from a platform to be published - Additional_data field to platform_status to input any other data from a platform to be published
- Goal object in mission_plan message that consists of a GeoJSON feature (representing the part of primitive that is currently the goal of the given mission plan). - Goal object in mission_plan message that consists of a GeoJSON feature (representing the part of primitive that is currently the goal of the given mission plan).
- A `partial` flag that indicates if a mission plan is a partial plan or the entire mission plan - A `partial` flag that indicates if a mission plan is a partial plan or the entire mission plan
......
...@@ -3,6 +3,7 @@ payload_schema = { ...@@ -3,6 +3,7 @@ payload_schema = {
"propertyName": "message_type", "propertyName": "message_type",
"mapping": { "mapping": {
"alert": "#/components/schemas/alert", "alert": "#/components/schemas/alert",
"autonomy_engine_control": "#/components/schemas/autonomy_engine_control",
"mission_plan": "#/components/schemas/mission_plan", "mission_plan": "#/components/schemas/mission_plan",
"mission_plan_encoded": "#/components/schemas/mission_plan_encoded", "mission_plan_encoded": "#/components/schemas/mission_plan_encoded",
"observation": "#/components/schemas/observation", "observation": "#/components/schemas/observation",
...@@ -22,6 +23,7 @@ payload_schema = { ...@@ -22,6 +23,7 @@ payload_schema = {
"oneOf": [ "oneOf": [
{"$ref": "#/components/schemas/alert"}, {"$ref": "#/components/schemas/alert"},
{"$ref": "#/components/schemas/acknowledgement"}, {"$ref": "#/components/schemas/acknowledgement"},
{"$ref": "#/components/schemas/autonomy_engine_control"},
{"$ref": "#/components/schemas/mission_plan"}, {"$ref": "#/components/schemas/mission_plan"},
{"$ref": "#/components/schemas/mission_plan_encoded"}, {"$ref": "#/components/schemas/mission_plan_encoded"},
{"$ref": "#/components/schemas/observation"}, {"$ref": "#/components/schemas/observation"},
......
...@@ -1876,6 +1876,7 @@ ...@@ -1876,6 +1876,7 @@
"mapping": { "mapping": {
"acknowledgement": "#/components/schemas/acknowledgement", "acknowledgement": "#/components/schemas/acknowledgement",
"alert": "#/components/schemas/alert", "alert": "#/components/schemas/alert",
"autonomy_engine_control": "#/components/schemas/autonomy_engine_control",
"mission_plan": "#/components/schemas/mission_plan", "mission_plan": "#/components/schemas/mission_plan",
"mission_plan_encoded": "#/components/schemas/mission_plan_encoded", "mission_plan_encoded": "#/components/schemas/mission_plan_encoded",
"observation": "#/components/schemas/observation", "observation": "#/components/schemas/observation",
...@@ -1897,6 +1898,9 @@ ...@@ -1897,6 +1898,9 @@
{ {
"$ref": "#/components/schemas/acknowledgement" "$ref": "#/components/schemas/acknowledgement"
}, },
{
"$ref": "#/components/schemas/autonomy_engine_control"
},
{ {
"$ref": "#/components/schemas/mission_plan" "$ref": "#/components/schemas/mission_plan"
}, },
......
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