From 0e30492f971e93e096fbb9ffd0b10085e2799e83 Mon Sep 17 00:00:00 2001
From: Andreas Huber <anh@fjd.de>
Date: Mon, 9 Nov 2020 11:55:37 +0100
Subject: [PATCH] =?UTF-8?q?Application=20Schema=20um=20Property=20"encodin?=
 =?UTF-8?q?g"=20erg=C3=A4nzt?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 models/application/schema.json | 44 +++++++++++++++++++++-------------
 1 file changed, 27 insertions(+), 17 deletions(-)

diff --git a/models/application/schema.json b/models/application/schema.json
index b5d7ea28..6bc4ded3 100644
--- a/models/application/schema.json
+++ b/models/application/schema.json
@@ -3,6 +3,21 @@
   "title": "Application Schema",
   "description": "Strukturinformationen zu übertragbaren oder übertragenen Daten.",
   "additionalProperties": false,
+  "x-examples": {
+    "example-1": {
+      "mimeType": "json",
+      "schemaSource": "none"
+    },
+    "example-2": {
+      "mimeType": "xml",
+      "schemaSource": "none"
+    },
+    "example-3": {
+      "mimeType": "xml",
+      "schemaSource": "fim",
+      "schemaId": "S99000001V1.0"
+    }
+  },
   "properties": {
     "schemaId": {
       "type": "string",
@@ -23,25 +38,20 @@
         "xml"
       ],
       "description": "Gibt das zulässige Format (JSON oder XML) der Fachdaten an."
+    },
+    "encoding": {
+      "type": "string",
+      "enum": [
+        "plain",
+        "base64",
+        "jwe"
+      ],
+      "description": "Übertragungscodierung:\n- `plain`: kein Encoding\n- `base64`: Inhalt base64-codieren\n- `jwe`: Inhalt mit JSON Web Encryption verschlüsseln"
     }
   },
   "required": [
     "schemaSource",
-    "mimeType"
-  ],
-  "x-examples": {
-    "example-1": {
-      "mimeType": "json",
-      "schemaSource": "none"
-    },
-    "example-2": {
-      "mimeType": "xml",
-      "schemaSource": "none"
-    },
-    "example-3": {
-      "mimeType": "xml",
-      "schemaSource": "fim",
-      "schemaId": "S99000001V1.0"
-    }
-  }
+    "mimeType",
+    "encoding"
+  ]
 }
\ No newline at end of file
-- 
GitLab