Browse Source

Check obstacle image for existance in schema

Ivan Savenko 2 years ago
parent
commit
21ea50ca1e
1 changed files with 5 additions and 1 deletions
  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",