Przeglądaj źródła

Fix spell book schema for selection of casting type.

Samuel Jaffe 8 lat temu
rodzic
commit
abeb6198c3
1 zmienionych plików z 18 dodań i 22 usunięć
  1. 18 22
      schema/spellbook.json

+ 18 - 22
schema/spellbook.json

@@ -68,40 +68,36 @@
     },
     },
     "castingType": {
     "castingType": {
       "Inspired": {
       "Inspired": {
-        "patternProperties": {
-          "^[0-9]$": {
-            "properties": {
-              "spellsPerDayRemaining": false,
-              "spellsKnown": false
-            }
+        "additionalProperties": {
+          "required": ["spellsPerDay", "spellsPrepared", "spellsPreparedPreviously"],
+          "properties": {
+            "spellsPerDayRemaining": false,
+            "spellsKnown": false
           }
           }
         }
         }
       },
       },
       "Spontaneous": {
       "Spontaneous": {
-        "patternProperties": {
-          "^[0-9]$": {
-            "properties": {
-              "spellsPrepared": false,
-              "spellsPreparedPreviously": false
-            }
+        "additionalProperties": {
+          "required": ["spellsPerDay", "spellsPerDayRemaining", "spellsKnown"],
+          "properties": {
+            "spellsPrepared": false,
+            "spellsPreparedPreviously": false
           }
           }
         }
         }
       },
       },
       "Researched": {
       "Researched": {
-        "patternProperties": {
-          "^[0-9]$": {
-            "properties": {
-              "spellsPerDayRemaining": false
-            }
+        "additionalProperties": {
+          "required": ["spellsPerDay", "spellsKnown", "spellsPrepared", "spellsPreparedPreviously"],
+          "properties": {
+            "spellsPerDayRemaining": false
           }
           }
         }
         }
       },
       },
       "Retrieved": {
       "Retrieved": {
-        "patternProperties": {
-          "^[0-9]$": {
-            "properties": {
-              "spellsKnown": false
-            }
+        "additionalProperties": {
+          "required": ["spellsPerDay", "spellsPerDayRemaining", "spellsPrepared", "spellsPreparedPreviously"],
+          "properties": {
+            "spellsKnown": false
           }
           }
         }
         }
       }
       }