{ "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "Concorrenti IA (ai.json)", "type": "object", "properties": { "$schema": { "type": "string" }, "version": { "type": "integer", "minimum": 1 }, "planning": { "type": "object", "additionalProperties": { "type": [ "number", "integer", "boolean", "array", "object", "string" ] } }, "personalities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[a-z][a-z0-9_]*$" }, "name_it": { "type": "string", "minLength": 1 }, "roiThreshold": { "type": "number", "minimum": 0, "maximum": 1 }, "loanShareOfCredit": { "type": "number", "minimum": 0, "maximum": 1 }, "targetsPlayer": { "type": "boolean" }, "buysShares": { "type": "boolean" }, "maintenancePolicy": { "type": "string", "enum": [ "economy", "standard", "thorough" ] } }, "required": [ "id", "name_it", "roiThreshold", "loanShareOfCredit", "targetsPlayer", "buysShares", "maintenancePolicy" ], "additionalProperties": false }, "minItems": 3 }, "companyNames": { "type": "array", "items": { "type": "string", "minLength": 1 }, "minItems": 4, "uniqueItems": true }, "colors": { "type": "array", "items": { "type": "string", "pattern": "^#[0-9a-fA-F]{6}$" }, "minItems": 1 }, "market": { "type": "object", "additionalProperties": { "type": [ "number", "integer", "boolean" ] } } }, "required": [ "version", "planning", "personalities", "companyNames", "colors", "market" ], "additionalProperties": false }