{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "DailyDelivery",
    "description": "A schedule of deliveries to multiple facilities",
    "type": "object",
    "properties": {
        "doc_type": {
            "type": "string",
            "pattern": "^dailyDelivery$"
        },
        "version": {
            "type": "string",
            "format": "semver"
        },
        "deliveryRoundID": {
            "type": "string",
            "chance": {
                "hash": {
                    "length": 32
                }
            }
        },
        "driverID": {
            "type": "string"
        },
        "facilityRounds": {
            "type": "array"
        },
        "packingLists": {
            "type": "array"
        }
    },
    "required": [
        "doc_type",
        "version"
    ]
}