{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "description": "Schema that describes payload for receiving a chunk of raw records",
    "type": "object",
    "properties": {
        "last": {
            "description": "Indicates if the current chunk is the last one associated with the same JobExecution",
            "type": "boolean"
        },
        "total": {
            "description": "Total number of chunks associated with the same JobExecution",
            "type": "integer"
        },
        "records": {
            "description": "List of raw records",
            "type": "array",
            "items": {
                "type": "string"
            }
        }
    },
    "required": [
        "last",
        "total",
        "records"
    ]
}