Browse Source

Check obstacle image for existance in schema

Ivan Savenko 2 năm trước cách đây
mục cha
commit
21ea50ca1e
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  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",