From 34b42c40433394f86aa61bcc62886f119231387e Mon Sep 17 00:00:00 2001
From: Trishna Saeharaseelan <trishna.saeharaseelan@noc.ac.uk>
Date: Fri, 17 Mar 2023 15:57:26 +0000
Subject: [PATCH] refactor(encoded schema): remove contentEncoding base64 that
 limits encoding

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

diff --git a/formats/encoded.py b/formats/encoded.py
index 1818c1b..02069b6 100644
--- a/formats/encoded.py
+++ b/formats/encoded.py
@@ -21,8 +21,7 @@ encoded_schema = {
         },
         "data": {
             "type": "string",
-            "description": "Base64 encoded string",
-            "contentEncoding": "base64",
+            "description": "encoded string. E.g. Base64 encoded",
             "example": "SDQke4uwyP/YQQAgAhA2AND/nu8nvQAAAAAAAAAACtejPa5HHUGkcB"
             + "AAAAIAAAAQAAAAAAAAAA9P2cP166ab+9cg==",
         },
diff --git a/project/soar/swagger.json b/project/soar/swagger.json
index dcaee9e..0b4be39 100644
--- a/project/soar/swagger.json
+++ b/project/soar/swagger.json
@@ -196,8 +196,7 @@
          "mission_plan_encoded":{
             "properties":{
                "data":{
-                  "contentEncoding":"base64",
-                  "description":"Base64 encoded string",
+                  "description":"Encoded string. E.g.: base64 encoded",
                   "example":"SDQke4uwyP/YQQAgAhA2AND/nu8nvQAAAAAAAAAACtejPa5HHUGkcBAAAAIAAAAQAAAAAAAAAA9P2cP166ab+9cg==",
                   "type":"string"
                },
@@ -300,8 +299,7 @@
          "observation_encoded":{
             "properties":{
                "data":{
-                  "contentEncoding":"base64",
-                  "description":"Base64 encoded string",
+                  "description":"Encoded string. E.g. base64 encoding",
                   "example":"SDQke4uwyP/YQQAgAhA2AND/nu8nvQAAAAAAAAAACtejPa5HHUGkcBAAAAIAAAAQAAAAAAAAAA9P2cP166ab+9cg==",
                   "type":"string"
                },
@@ -784,8 +782,7 @@
          "platform_status_encoded":{
             "properties":{
                "data":{
-                  "contentEncoding":"base64",
-                  "description":"Base64 encoded string",
+                  "description":"Encoded string. E.g. base64 encoding",
                   "example":"SDQke4uwyP/YQQAgAhA2AND/nu8nvQAAAAAAAAAACtejPa5HHUGkcBAAAAIAAAAQAAAAAAAAAA9P2cP166ab+9cg==",
                   "type":"string"
                },
-- 
GitLab