{ "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "Beni (goods.json)", "type": "object", "properties": { "$schema": { "type": "string" }, "version": { "type": "integer", "minimum": 1 }, "goods": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[a-z][a-z0-9_]*$" }, "name_it": { "type": "string", "minLength": 1 }, "name_en": { "type": "string", "minLength": 1 }, "category": { "type": "string", "enum": [ "bulk", "general", "liquid", "perishable" ] }, "unit": { "type": "string", "minLength": 1 }, "wagon": { "type": "string", "enum": [ "hopper", "flat", "tank", "box" ] }, "basePrice": { "type": "integer", "minimum": 1 }, "elasticity": { "type": "number", "minimum": 0, "maximum": 3 }, "decayDaysAtStation": { "type": "integer", "minimum": 1 }, "era": { "type": "integer", "minimum": 1800, "maximum": 2300 }, "town": { "type": "object", "properties": { "category": { "type": "string", "enum": [ "food", "goods", "fuel", "construction" ] }, "demandPerThousand": { "type": "number", "minimum": 0, "maximum": 10 }, "untilYear": { "type": "integer", "minimum": 1800, "maximum": 2300 } }, "required": [ "category", "demandPerThousand" ], "additionalProperties": false }, "service": { "type": "boolean" } }, "required": [ "id", "name_it", "name_en", "category", "unit", "wagon", "basePrice", "elasticity", "decayDaysAtStation", "era" ], "additionalProperties": false }, "minItems": 12 } }, "required": [ "version", "goods" ], "additionalProperties": false }