/usr/share/iso-codes/json
NameSizeModeActions
iso_639-2.json367870644editdlrm
iso_639-3.json8670910644editdlrm
iso_639-5.json84860644editdlrm
iso_3166-1.json431920644editdlrm
iso_3166-2.json4951460644editdlrm
iso_3166-3.json59340644editdlrm
iso_4217.json155220644editdlrm
iso_15924.json170970644editdlrm
schema-639-2.json12990644editdlrm
schema-639-3.json19130644editdlrm
schema-639-5.json7680644editdlrm
schema-3166-1.json16380644editdlrm
schema-3166-2.json10450644editdlrm
schema-3166-3.json16650644editdlrm
schema-4217.json9340644editdlrm
schema-15924.json9600644editdlrm
Edit: /usr/share/iso-codes/json/schema-3166-2.json (1045B)
{ "$schema": "http://json-schema.org/draft-04/schema#", "title": "ISO 3166-2", "description": "ISO 3166-2 country and subdivision codes", "type": "object", "properties": { "3166-2": { "type": "array", "items": { "type": "object", "properties": { "code": { "description": "Code of the country subset item", "type": "string", "pattern": "^[A-Z]{2}-[A-Z0-9]+$" }, "name": { "description": "Name of the country subset item", "type": "string", "minLength": 1 }, "parent": { "description": "Parent of the country subset item (optional)", "type": "string", "minLength": 1 }, "type": { "description": "Type of subset of the country", "type": "string" } } }, "required": ["code", "name", "type"], "additionalProperties": false } }, "additionalProperties": false }