{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "http://dev.host/schema/entities/Party.json",
    "title": "Party",
    "type": "object",
    "definitions": {
        "RegionalSettings": {
            "type": "object",
            "properties": {
                "currency": {
                    "type": "string"
                },
                "timezone": {
                    "type": "string"
                },
                "dateFormat": {
                    "type": "string"
                },
                "timeDelimiter": {
                    "type": "string",
                    "enum": [
                        ":",
                        "-",
                        " "
                    ]
                },
                "oderOfFirstLastName": {
                    "type": "boolean"
                }
            },
            "required": [
                "currency",
                "timezone",
                "dateFormat",
                "timeDelimiter",
                "oderOfFirstLastName"
            ],
            "additionalProperties": false
        }
    },
    "properties": {
        "UUID": {
            "type": "string"
        },
        "regionalSettings": {
            "$ref": "#/definitions/RegionalSettings"
        },
        "avatar": {
            "type": "string"
        }
    },
    "required": [
        "UUID"
    ],
    "additionalProperties": false
}