From cff09f1aec8fce71cb467cde547bf36d3f353470 Mon Sep 17 00:00:00 2001
From: Trishna Saeharaseelan <trishna.saeharaseelan@noc.ac.uk>
Date: Mon, 10 Feb 2025 13:49:34 +0000
Subject: [PATCH] refactor: regenerate swagger and update mock message

---
 examples/mas-dt/autonomy.json |  1 -
 project/soar/swagger.json     | 31 +++++++++++++++++++++----------
 2 files changed, 21 insertions(+), 11 deletions(-)

diff --git a/examples/mas-dt/autonomy.json b/examples/mas-dt/autonomy.json
index 3d7dfe4..6a8d81c 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 3984df4..eebeacc 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": [
-- 
GitLab