{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "definitions": {
        "codeName": {
            "type": "object",
            "properties": {
                "nome": {
                    "type": "string"
                },
                "codice": {
                    "type": "string"
                }
            },
            "required": [
                "nome",
                "codice"
            ]
        }
    },
    "type": "array",
    "items": {
        "type": "object",
        "properties": {
            "nome": {
                "type": "string"
            },
            "codice": {
                "type": "string"
            },
            "zona": {
                "$ref": "#/definitions/codeName"
            },
            "regione": {
                "$ref": "#/definitions/codeName"
            },
            "cm": {
                "$ref": "#/definitions/codeName"
            },
            "provincia": {
                "$ref": "#/definitions/codeName"
            },
            "sigla": {
                "type": "string"
            },
            "codiceCatastale": {
                "type": "string"
            },
            "cap": {
                "type": "string"
            }
        }
    }
}