From 8947977d890ebe3e46e8e2e50c2c0a9c0a53fdfb Mon Sep 17 00:00:00 2001 From: Trishna Saeharaseelan <trishna.saeharaseelan@noc.ac.uk> Date: Mon, 6 Mar 2023 14:51:55 +0000 Subject: [PATCH] refactor: project content to latest --- project/soar/swagger.json | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/project/soar/swagger.json b/project/soar/swagger.json index 9bdf22a..cbfe13a 100644 --- a/project/soar/swagger.json +++ b/project/soar/swagger.json @@ -31,8 +31,9 @@ "message_type":{ "description":"Type of message", "example":"acknowledgement", - "type":"string" - }, + "type":"string", + "enum": ["acknowledgement"] + }, "platform_ID":{ "description":"Unique identifier for this platform", "example":"reav-x-1", @@ -107,7 +108,8 @@ "message_type":{ "description":"Type of message", "example":"mission_plan", - "type":"string" + "type":"string", + "enum": ["mission_plan"] }, "plan":{ "items":{ @@ -202,7 +204,8 @@ "message_type":{ "description":"Type of message", "example":"observation", - "type":"string" + "type":"string", + "enum": ["observation"] }, "platform_ID":{ "description":"Unique identifier for this platform", @@ -319,7 +322,8 @@ "message_type":{ "description":"Type of message", "example":"planning_configuration", - "type":"string" + "type":"string", + "enum": ["planning_configuration"] }, "planning_config_ID":{ "description":"Unique identifier tagged to version of this configuration plan", @@ -351,7 +355,8 @@ "description":"Any addition fields/data to be added here", "example":{ - } + }, + "type":"object" }, "safe_command":{ "description":"Command/Action that is native to respective partner's platform/C2", @@ -569,7 +574,8 @@ "message_type":{ "description":"Type of message", "example":"platform_status", - "type":"string" + "type":"string", + "enum": ["platform_status"] }, "mission_plan_ID":{ "description":"Mission plan ID according to platform-C2 system", -- GitLab