From 3a69cf5e343dddc964e0bc98da6e369da1a46969 Mon Sep 17 00:00:00 2001
From: robin <binkrassdufass@gmail.com>
Date: Sun, 23 Jul 2023 21:26:41 +0000
Subject: [PATCH] really final changes

---
 schemas/api-config/dashboard.json | 21 ++++++++++++++-------
 1 file changed, 14 insertions(+), 7 deletions(-)

diff --git a/schemas/api-config/dashboard.json b/schemas/api-config/dashboard.json
index 1dca799..05ad371 100644
--- a/schemas/api-config/dashboard.json
+++ b/schemas/api-config/dashboard.json
@@ -117,13 +117,19 @@
                     ]
                 },
                 "subTitle": {
-                    "type": "object",
-                    "properties": {
-                        "de": { "type": "string" },
-                        "en": { "type": "string" }
-                    },
-                    "required": ["de", "en"]
+                    "oneOf": [
+                        { "type": "string" },
+                        {
+                            "type": "object",
+                            "properties": {
+                                "de": { "type": "string" },
+                                "en": { "type": "string" }
+                            },
+                            "required": ["de", "en"]
+                        }
+                    ]
                 },
+
                 "xAxis": { "type": "string", "enum": ["timeline"] },
                 "timeInterval": {
                     "type": "string",
@@ -207,6 +213,7 @@
         "table": {
             "type": "object",
             "properties": {
+                "containerProps": { "$ref": "#/definitions/containerProps" },
                 "type": { "type": "string", "enum": ["table"] },
                 "filter": { "type": "boolean" },
                 "collection": { "type": "string" },
@@ -243,7 +250,7 @@
                     "$ref": "#/definitions/additionalApiParams"
                 }
             },
-            "required": ["type", "columns"],
+            "required": ["type"],
             "additionalProperties": false
         },