Browse Source

Add missing schema for "rmg" section of object description

Ivan Savenko 2 years ago
parent
commit
7b8ca9fd40
1 changed files with 19 additions and 0 deletions
  1. 19 0
      config/schemas/objectType.json

+ 19 - 0
config/schemas/objectType.json

@@ -13,8 +13,27 @@
 			"type" : "number"
 		},
 		"base" : {
+			"additionalProperties" : true, // Not validated on its own - instead data copied to main object and validated as part of it
 			"type" : "object"
 		},
+		"rmg" : {
+			"additionalProperties" : false,
+			"type" : "object",
+			"properties" : {
+				"value" : {
+					"type" : "number"
+				},
+				"mapLimit" : {
+					"type" : "number"
+				},
+				"zoneLimit" : {
+					"type" : "number"
+				},
+				"rarity" : {
+					"type" : "number"
+				}
+			}
+		},
 		"templates" : {
 			"type" : "object",
 			"additionalProperties" : {