{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "PackingList",
    "description": "A list of products due on a delivery round",
    "type": "object",
    "properties": {
        "doc_type": {
            "type": "string",
            "pattern": "^packingList$"
        },
        "version": {
            "type": "string",
            "format": "semver"
        },
        "productID": {
            "type": "string",
            "chance": {
                "hash": {
                    "length": 32
                }
            }
        },
        "expectedQty": {
            "type": "integer"
        },
        "packedQty": {
            "type": "integer"
        },
        "deliveredQty": {
            "type": "integer"
        },
        "adjustmentReason": {
            "type": "string"
        }
    },
    "required": [
        "doc_type",
        "version",
        "productID",
        "expectedQty"
    ]
}