Selaa lähdekoodia

Check obstacle image for existance in schema

Ivan Savenko 2 vuotta sitten
vanhempi
sitoutus
21ea50ca1e
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5 1
      config/schemas/obstacle.json

+ 5 - 1
config/schemas/obstacle.json

@@ -32,7 +32,11 @@
 		},
 		"animation": {
 			"type": "string",
-			"description": "Image resource"
+			"description": "Image resource",
+			"anyOf" : [
+				{ "format" : "defFile" },
+				{ "format" : "imageFile" }
+			]
 		},
 		"unknown": {
 			"type": "number",