{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://schema.twindev.org/documents/DocumentBase",
    "title": "DocumentBase",
    "description": "Interface describing a document base.",
    "type": "object",
    "properties": {
        "documentId": {
            "type": "string",
            "description": "The id of the document."
        },
        "documentIdFormat": {
            "type": "string",
            "description": "The format of the document id."
        },
        "documentCode": {
            "$ref": "https://schema.twindev.org/unece/UneceDocumentCodeList",
            "description": "The code for the document type."
        },
        "annotationObject": {
            "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject",
            "description": "Additional annotation information for the document."
        }
    },
    "required": [
        "documentId",
        "documentCode"
    ]
}
