{
    "title": "step history collection of one order run",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.order.OrderStepHistory",
    "type": "object",
    "required": [
        "deliveryDate",
        "history"
    ],
    "properties": {
        "deliveryDate": {
            "description": "Current date of the JOC server/REST service. Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ",
            "type": "string",
            "format": "date-time"
        },
        "history": {
            "type": "object",
            "required": [
                "historyId",
                "steps"
            ],
            "properties": {
                "historyId": {
                    "type": "string"
                },
                "steps": {
                    "type": "array",
                    "items": {
                        "javaType": "com.sos.joc.model.order.OrderStepHistoryItem",
                        "type": "object",
                        "required": [
                            "node",
                            "job",
                            "step",
                            "startTime",
                            "taskId"
                        ],
                        "properties": {
                            "node": {
                                "type": "string"
                            },
                            "job": {
                                "description": "absolute path based on live folder of a JobScheduler object.",
                                "type": "string",
                                "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
                                "maxLength": 255
                            },
                            "step": {
                                "type": "integer",
                                "minimum": 0
                            },
                            "startTime": {
                                "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                                "type": "string",
                                "format": "date-time"
                            },
                            "endTime": {
                                "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                                "type": "string",
                                "format": "date-time"
                            },
                            "taskId": {
                                "type": "string"
                            },
                            "clusterMember": {
                                "type": "integer",
                                "minimum": 0
                            },
                            "exitCode": {
                                "type": "integer",
                                "minimum": 0
                            },
                            "error": {
                                "javaType": "com.sos.joc.model.common.Err",
                                "type": "object",
                                "required": [
                                    "code",
                                    "message"
                                ],
                                "properties": {
                                    "code": {
                                        "type": "string",
                                        "pattern": "^[^<>]*$",
                                        "maxLength": 255
                                    },
                                    "message": {
                                        "type": "string"
                                    }
                                }
                            },
                            "agent": {
                                "description": "agent url",
                                "type": "string"
                            }
                        }
                    }
                }
            }
        }
    }
}