Bladeren bron

Fix json schemas

Ivan Savenko 4 maanden geleden
bovenliggende
commit
55cc4747ba
2 gewijzigde bestanden met toevoegingen van 3 en 7 verwijderingen
  1. 1 1
      config/schemas/bonus.json
  2. 2 6
      config/schemas/spell.json

+ 1 - 1
config/schemas/bonus.json

@@ -3,7 +3,7 @@
 	"$schema" : "http://json-schema.org/draft-04/schema",
 	"title" : "VCMI bonus type format",
 	"description" : "Definition of bonus types",
-	"required" : ["type"],
+	"required" : [],
 	"additionalProperties" : false,
 	"properties" : {
 		"hidden" : {

+ 2 - 6
config/schemas/spell.json

@@ -197,12 +197,8 @@
 		"school" : {
 			"type" : "object",
 			"description" : "List of spell schools this spell belongs to",
-			"additionalProperties" : false,
-			"properties" : {
-				"air" : {"type" : "boolean"},
-				"fire" : {"type" : "boolean"},
-				"earth" : {"type" : "boolean"},
-				"water" : {"type" : "boolean"}
+			"additionalProperties" : {
+				"type" : "boolean"
 			}
 		},
 		"level" : {