diff --git a/examples/mas-dt/autonomy.json b/examples/mas-dt/autonomy.json index 3d7dfe46fa61859f8bd84a441f5fb4ce4bbe19af..6a8d81c51cef0d94ca73957e20a39954f4328b08 100644 --- a/examples/mas-dt/autonomy.json +++ b/examples/mas-dt/autonomy.json @@ -11,7 +11,6 @@ "payload":{ "message_type": "autonomy", "planning_config_ID": 1, - "version": "v0.1.2", "state": "start" } } \ No newline at end of file diff --git a/project/soar/swagger.json b/project/soar/swagger.json index 3984df41e1ef686f0d061a6bd6eb1ca2edadb848..eebeacc58f0062831a08e6463e40b61f876f415b 100644 --- a/project/soar/swagger.json +++ b/project/soar/swagger.json @@ -121,11 +121,27 @@ "example": "autonomy", "type": "string" }, - "planning_config_ID": { - "description": "Unique identifier of autonomy engine's planning config ID configuration plan", - "example": 3, - "type": "integer" - }, + "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": { "description": "Autonomy engine instruction to start or stop model", "enum": [ @@ -134,11 +150,6 @@ ], "example": "stop", "type": "string" - }, - "version": { - "description": "Version of autonomy engine for given planning config ID", - "example": "v1.0.0", - "type": "string" } }, "required": [