{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "Area",
    "type": "object",
    "properties": {
        "type": {
            "type": "string",
            "enum": [
                "area"
            ]
        },
        "division_id": {
            "type": "string",
            "pattern": "^ocd-division/country:[a-z]{2}$"
        },
        "gid": {
            "type": "integer"
        },
        "row": {
            "type": "integer"
        },
        "id": {
            "type": "string",
            "pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$"
        },
        "name": {
            "$ref": "#/definitions/simple_string"
        },
        "geonames_id": {
            "type": "object",
            "properties": {
                "value": {
                    "type": "integer"
                }
            },
            "additionalProperties": false,
            "required": [
                "value"
            ]
        }
    },
    "additionalProperties": false,
    "required": [
        "type",
        "division_id",
        "gid",
        "row",
        "id",
        "name"
    ],
    "definitions": {
        "simple_string": {
            "type": "object",
            "properties": {
                "value": {
                    "type": "string"
                }
            },
            "additionalProperties": false,
            "required": [
                "value"
            ]
        }
    }
}