Verified Commit 6e9d52e9 authored by Dan Jones's avatar Dan Jones
Browse files

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
......@@ -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",
......
......@@ -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",
......
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