Quellcode durchsuchen

18.OP-1 - feedback by @bwhm

singulart vor 3 Jahren
Ursprung
Commit
e460d74e89
1 geänderte Dateien mit 6 neuen und 4 gelöschten Zeilen
  1. 6 4
      operations/kpi_schema.json

+ 6 - 4
operations/kpi_schema.json

@@ -50,6 +50,7 @@
     },
     "sections": {
       "type": "array",
+      "minItems": 1,
       "items": {
         "type": "object",
         "required": ["sectionTitle", "sectionDescription", "kpis"],
@@ -58,13 +59,12 @@
           "sectionDescription": {"type": "string"},
           "kpis": {
             "type": "array",
+            "minItems": 1,  
             "items": {
               "type": "object",
               "required": [
                 "kpiTitle", 
                 "reward", 
-                "rewardStructure", 
-                "gradingProcess", 
                 "active", 
                 "purpose", 
                 "scopeOfWork", 
@@ -82,7 +82,9 @@
                     "rewardDescription": {"type": "string"}
                   }
                 },
-                "rewardStructure": {"type": "string"},
+                "rewardStructure": {
+                  "const": "Individual"
+                },
                 "gradingProcess": {"type": "string"},
                 "active": {
                   "type": "object",
@@ -125,4 +127,4 @@
       }
     }
   }
-}
+}