diff --git a/docs/Modders/schemas/buildings.json b/docs/Modders/schemas/buildings.json index c772dc54ab..cac09ceb10 100644 --- a/docs/Modders/schemas/buildings.json +++ b/docs/Modders/schemas/buildings.json @@ -14,14 +14,9 @@ "happiness": { "type": "number" }, "faith": { "type": "number" }, - "uniques": { - "type": "array", - "items": { "type": "string" } - }, - "civilopediaText": { - "type": "array", - "items": { "$ref": "#/definitions/civilopediaText"} - }, + "uniques": { "$ref": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/uniques.json" }, + "civilopediaText": { "$ref": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/civilopediaText.json" }, + "requiredTech": { "type": "string" }, "cost": { "type": "number" }, "maintenance": { "type": "number" }, @@ -54,26 +49,5 @@ "name" ], "additionalProperties": false - }, - "definitions": { - "civilopediaText": { - "type": "object", - "properties": { - "text": { "type": "string" }, - "link": { "type": "string" }, - "icon": { "type": "string" }, - "extraImage": { "type": "string" }, - "imageSize": { "type": "number" }, - "size": { "type": "number" }, - "header": { "type": "number" }, - "indent": { "type": "number" }, - "padding": { "type": "number" }, - "color": { "type": "string" }, - "separator": { "type": "boolean" }, - "starred": { "type": "boolean" }, - "centered": { "type": "boolean" }, - "iconCrossed": { "type": "boolean" } - } - } } } diff --git a/docs/Modders/schemas/civilopediaText.json b/docs/Modders/schemas/civilopediaText.json index 6e5d22d91b..d7245cbf0d 100644 --- a/docs/Modders/schemas/civilopediaText.json +++ b/docs/Modders/schemas/civilopediaText.json @@ -1,19 +1,22 @@ { - "type": "object", - "properties": { - "text": { "type": "string" }, - "link": { "type": "string" }, - "icon": { "type": "string" }, - "extraImage": { "type": "string" }, - "imageSize": { "type": "number" }, - "size": { "type": "number" }, - "header": { "type": "number" }, - "indent": { "type": "number" }, - "padding": { "type": "number" }, - "color": { "type": "string" }, - "separator": { "type": "boolean" }, - "starred": { "type": "boolean" }, - "centered": { "type": "boolean" }, - "iconCrossed": { "type": "boolean" } + "type": "array", + "items": { + "type": "object", + "properties": { + "text": { "type": "string" }, + "link": { "type": "string" }, + "icon": { "type": "string" }, + "extraImage": { "type": "string" }, + "imageSize": { "type": "number" }, + "size": { "type": "number" }, + "header": { "type": "number" }, + "indent": { "type": "number" }, + "padding": { "type": "number" }, + "color": { "type": "string" }, + "separator": { "type": "boolean" }, + "starred": { "type": "boolean" }, + "centered": { "type": "boolean" }, + "iconCrossed": { "type": "boolean" } + } } } diff --git a/docs/Modders/schemas/units.json b/docs/Modders/schemas/units.json index 5fe0913682..73a8e6bb67 100644 --- a/docs/Modders/schemas/units.json +++ b/docs/Modders/schemas/units.json @@ -26,7 +26,7 @@ "uniqueTo": { "type": "string" }, "replaces": { "type": "string" }, - "uniques": { "$ref": "#/definitions/uniques" }, + "uniques": { "$ref": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/uniques.json" }, "promotions": { "type": "array", @@ -36,10 +36,7 @@ "attackSound": { "type": "string" }, "replacementTextForUniques": { "type": "string" }, - "civilopediaText": { - "type": "array", - "items": { "$ref": "#/definitions/civilopediaText"} - } + "civilopediaText": { "$ref": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/civilopediaText.json" } }, "required": [ "name", "unitType" @@ -50,25 +47,6 @@ "uniques": { "type": "array", "items": { "type": "string" } - }, - "civilopediaText": { - "type": "object", - "properties": { - "text": { "type": "string" }, - "link": { "type": "string" }, - "icon": { "type": "string" }, - "extraImage": { "type": "string" }, - "imageSize": { "type": "number" }, - "size": { "type": "number" }, - "header": { "type": "number" }, - "indent": { "type": "number" }, - "padding": { "type": "number" }, - "color": { "type": "string" }, - "separator": { "type": "boolean" }, - "starred": { "type": "boolean" }, - "centered": { "type": "boolean" }, - "iconCrossed": { "type": "boolean" } - } } } }