浏览代码

Check obstacle image for existance in schema

Ivan Savenko 2 年之前
父节点
当前提交
21ea50ca1e
共有 1 个文件被更改,包括 5 次插入1 次删除
  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",