Consistent indendation

This commit is contained in:
Yair Morgenstern
2023-09-21 23:23:38 +03:00
parent ba2a9e7127
commit 5dbdf630ab

View File

@ -1,86 +1,86 @@
{ {
"$schema": "http://json-schema.org/draft-07/schema", "$schema": "http://json-schema.org/draft-07/schema",
"type": "array", "type": "array",
"items": { "items": {
"allOf": [ "allOf": [
{ "$ref": "#/definitions/stats"}, { "$ref": "#/definitions/stats"},
{ {
"type": "object", "type": "object",
"properties": { "properties": {
"name": { "type": "string" }, "name": { "type": "string" },
"uniques": { "uniques": {
"type": "array", "type": "array",
"items": { "items": {
"type": "string", "type": "string",
"pattern": "^[^><]*(\\<[^>]*\\>[^><]*)*$" "pattern": "^[^><]*(\\<[^>]*\\>[^><]*)*$"
}, },
"uniqueItems": true // Can't imagine you mean to include the same thing twice "uniqueItems": true // Can't imagine you mean to include the same thing twice
}, },
"civilopediaText": { "civilopediaText": {
"type": "array", "type": "array",
"items": { "$ref": "#/definitions/civilopediaText"} "items": { "$ref": "#/definitions/civilopediaText"}
}, },
"requiredTech": { "type": "string" }, "requiredTech": { "type": "string" },
"cost": { "type": "number" }, "cost": { "type": "number" },
"maintenance": { "type": "number" }, "maintenance": { "type": "number" },
"percentStatBonus": { "$ref": "#/definitions/stats" }, "percentStatBonus": { "$ref": "#/definitions/stats" },
"specialistSlots": { "type": "object" }, "specialistSlots": { "type": "object" },
"greatPersonPoints": { "type": "object" }, "greatPersonPoints": { "type": "object" },
"hurryCostModifier": { "type": "number" }, "hurryCostModifier": { "type": "number" },
"isWonder": { "type": "boolean" }, "isWonder": { "type": "boolean" },
"isNationalWonder": { "type": "boolean" }, "isNationalWonder": { "type": "boolean" },
"requiredBuilding": { "type": "string" }, "requiredBuilding": { "type": "string" },
"requiredResource": { "type": "string" }, "requiredResource": { "type": "string" },
"requiredNearbyImprovedResources": { "requiredNearbyImprovedResources": {
"type": "array", "type": "array",
"items": { "type": "string" } "items": { "type": "string" }
}, },
"cityStrength": { "type": "number" }, "cityStrength": { "type": "number" },
"cityHealth": { "type": "number" }, "cityHealth": { "type": "number" },
"replaces": { "type": "string" }, "replaces": { "type": "string" },
"uniqueTo": { "type": "string" }, "uniqueTo": { "type": "string" },
"quote": { "type": "string" }, "quote": { "type": "string" },
"replacementTextForUniques": { "type": "string" } "replacementTextForUniques": { "type": "string" }
}, },
"required": [ "required": [
"name" "name"
], ],
"additionalProperties": false "additionalProperties": false
} }
], ]
}, },
"definitions": { "definitions": {
"stats": { "stats": {
"type": "object", "type": "object",
"properties": { "properties": {
"production": { "type": "number" }, "production": { "type": "number" },
"food": { "type": "number" }, "food": { "type": "number" },
"gold": { "type": "number" }, "gold": { "type": "number" },
"science": { "type": "number" }, "science": { "type": "number" },
"culture": { "type": "number" }, "culture": { "type": "number" },
"happiness": { "type": "number" }, "happiness": { "type": "number" },
"faith": { "type": "number" } "faith": { "type": "number" }
}, },
"additionalProperties": false "additionalProperties": false
}, },
"civilopediaText": { "civilopediaText": {
"type": "object", "type": "object",
"properties": { "properties": {
"text": { "type": "string" }, "text": { "type": "string" },
"link": { "type": "string" }, "link": { "type": "string" },
"icon": { "type": "string" }, "icon": { "type": "string" },
"extraImage": { "type": "string" }, "extraImage": { "type": "string" },
"imageSize": { "type": "number" }, "imageSize": { "type": "number" },
"size": { "type": "number" }, "size": { "type": "number" },
"header": { "type": "number" }, "header": { "type": "number" },
"indent": { "type": "number" }, "indent": { "type": "number" },
"padding": { "type": "number" }, "padding": { "type": "number" },
"color": { "type": "string" }, "color": { "type": "string" },
"separator": { "type": "boolean" }, "separator": { "type": "boolean" },
"starred": { "type": "boolean" }, "starred": { "type": "boolean" },
"centered": { "type": "boolean" }, "centered": { "type": "boolean" },
"iconCrossed": { "type": "boolean" } "iconCrossed": { "type": "boolean" }
} }
} }
} }
} }