Explorar o código

Check obstacle image for existance in schema

Ivan Savenko %!s(int64=2) %!d(string=hai) anos
pai
achega
21ea50ca1e
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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",