{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "description": "An alternative name of a company, e.g. abbreviation, trading (including dba or doing business as), legal. As well as trading names etc, it can be used for storing alternative language representations of the legal name, in which case the language should be represented as two-letter ISO-639 code",
    "type": "object",
    "properties": {
        "company_name": {
            "type": "string",
            "minLength": 1
        },
        "start_date": {
            "type": "string",
            "format": "date"
        },
        "end_date": {
            "type": "string",
            "format": "date"
        },
        "language": {
            "type": "string",
            "minLength": 2,
            "maxLength": 2
        },
        "type": {
            "type": "string",
            "enum": [
                "trading",
                "abbreviation",
                "legal",
                "unknown",
                "alias"
            ]
        }
    },
    "required": [
        "company_name",
        "type"
    ]
}