{
    "type": "object",
    "properties": {
        "id": {
            "type": "string"
        },
        "name": {
            "type": "string"
        },
        "number_of_pages": {
            "type": "integer"
        },
        "document_type": {
            "type": "string"
        },
        "line_items": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "description": {
                        "type": "string"
                    }
                },
                "required": [
                    "description",
                    "product_code",
                    "quantity",
                    "tax_amount",
                    "tax_rate",
                    "total_amount",
                    "unit_price"
                ]
            }
        },
        "currency": {
            "type": "string"
        },
        "supplier_name": {
            "type": "string"
        },
        "customer_name": {
            "type": "string"
        },
        "date": {
            "type": "string"
        },
        "due_date": {
            "type": "string"
        },
        "invoice_number": {
            "type": "string"
        },
        "payment_date": {
            "type": "string"
        },
        "supplier_address": {
            "type": "string"
        }
    },
    "required": [
        "id",
        "name",
        "number_of_pages",
        "document_type",
        "line_items",
        "currency"
    ],
    "version": 1
}
