From c5c9e77e19153211d38fef411b8e032baa4faf72 Mon Sep 17 00:00:00 2001
From: Dan Jones <danjon@noc.ac.uk>
Date: Fri, 13 Sep 2024 12:18:38 +0100
Subject: [PATCH] feat: add enum options for no position

---
 formats/platform_status.py | 9 ++++++++-
 project/soar/swagger.json  | 4 +++-
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/formats/platform_status.py b/formats/platform_status.py
index b02ce73..29fe17b 100644
--- a/formats/platform_status.py
+++ b/formats/platform_status.py
@@ -183,7 +183,14 @@ platform_status_schema = {
             "properties": {
                 "no_position_reason": {
                     "type": "string",
-                    "enum": ["missing", "invalid", "old", "poor_fix"],
+                    "enum": [
+                        "missing", 
+                        "invalid", 
+                        "old", 
+                        "poor_fix", 
+                        "unavailable", 
+                        "not_applicable"
+                    ],
                     "description": "Why position data is unavailable",
                     "example": "invalid",
                 },
diff --git a/project/soar/swagger.json b/project/soar/swagger.json
index 0abe717..359440a 100644
--- a/project/soar/swagger.json
+++ b/project/soar/swagger.json
@@ -2220,7 +2220,9 @@
                   "missing",
                   "invalid",
                   "old",
-                  "poor_fix"
+                  "poor_fix",
+                  "unavailable",
+                  "not_applicable"
                 ],
                 "example": "invalid",
                 "type": "string"
-- 
GitLab