浏览代码

Fix bonus schema to support array in duration

alexvins 11 年之前
父节点
当前提交
c7f57406eb
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      config/schemas/bonus.json

+ 4 - 1
config/schemas/bonus.json

@@ -19,7 +19,10 @@
 			"description": "description"
 		},
 		"duration": {
-			"type":"string",
+                        "anyOf" : [
+                                { "type": "string"},
+                                { "type": "array", "items": {"type": "string"} }
+                        ],
 			"description": "duration"
 		},
 		"effectRange": {