{
    "$id": "https://xshl.org/schemas/1.1/definitions/name.json",
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "Person name",
    "name": "name-xshl",
    "version": "1.2.1",
    "description": "A person name.",
    "type": "object",
    "required": ["given", "@language"],
    "additionalProperties": false,
    "properties": {
        "@context": {"$ref": "https://xshl.org/schemas/1.1/definitions/context.json"},
        "@type": {"$ref": "https://xshl.org/schemas/1.1/definitions/type.json"},
        "@id": {"$ref": "https://xshl.org/schemas/1.1/definitions/id.json"},
        "@language": {"type": "string", "enum": ["ru", "en", "md", "by", "kg", "kz"]},
        "given": {"$ref": "https://xshl.org/schemas/1.1/definitions/strings.json"},
        "additional": {"$ref": "https://xshl.org/schemas/1.1/definitions/strings.json"},
        "family": {"$ref": "https://xshl.org/schemas/1.1/definitions/strings.json"},
        "pseudonym": {"type": "string"},
        "honorific": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "prefix": {
                    "id": "http://schema.org/honorificPrefix",
                    "title": "honorificPrefix",
                    "description": "An honorific prefix preceding a Person's name such as Dr/Mrs/Mr.",
                    "$ref": "https://xshl.org/schemas/1.1/definitions/strings.json"
                },
                "suffix": {
                    "id": "http://schema.org/honorificSuffix",
                    "title": "honorificSuffix",
                    "description": "An honorific suffix preceding a Person's name such as M.D. /PhD/MSCSW.",
                    "$ref": "https://xshl.org/schemas/1.1/definitions/strings.json"
                }
            }
        }
    }
}