{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "document-contract.schema.json",
    "title": "Contract",
    "type": "object",
    "description": "Документ 'Контракт'",
    "allOf": [
        {
            "title": "Document",
            "$ref": "document.schema.json"
        }
    ],
    "properties": {
        "form": {
            "enum": [
                "STANDARD",
                "INDIVIDUAL"
            ],
            "description": "Форма договора"
        },
        "status": {
            "enum": [
                "DRAFT",
                "AGENT_SIGNING",
                "CUSTOMER_SIGNING",
                "CONTRACTOR_ADJUSTMENT",
                "CONTRACTOR_VERIFICATION",
                "SIGNED",
                "CLOSED",
                "CANCELLED"
            ],
            "description": "Статус договора"
        },
        "disagreementProtocolApprovedAt" : {
            "type": "string",
            "format": "date",
            "description": "Дата согласования протокола разногласий"
        }
    }
}