浏览代码

Expanded schema accoring to Nordsoft info

Ivan Savenko 2 年之前
父节点
当前提交
01e8a83c56
共有 1 个文件被更改,包括 13 次插入3 次删除
  1. 13 3
      config/schemas/mod.json

+ 13 - 3
config/schemas/mod.json

@@ -58,9 +58,19 @@
 		},
 		"compatibility" : {
 			"type":"object",
-			"description": "List of supported version of vcmi engine",
-			"additionalProperties" : {
-				"type" : "string"
+			"description": "Supported versions of vcmi engine",
+			"additionalProperties" : false,
+			"properties" : {
+				"min" : {
+					"type" : "string",
+					"description" : "minimal compatible vcmi engine version in a format major.minor.patch. When specified, earlier versions won't be supported"
+					//"pattern" : "^\\d+\\.\\d+\\.\\d+$" // Not implemented in schema support
+				},
+				"max" : {
+					"type" : "string",
+					"description" : "maximum compatible vcmi engine version in a format major.minor.patch. When specified, later versions won't be supported"
+					//"pattern" : "^\\d+\\.\\d+\\.\\d+$" // Not implemented in schema support
+				}
 			}
 		},