2
0
Эх сурвалжийг харах

Check obstacle image for existance in schema

Ivan Savenko 2 жил өмнө
parent
commit
21ea50ca1e

+ 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",