{
    "title": "dailyPlannedOrderItem",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "javaType": "com.sos.joc.model.dailyplan.PlannedOrderItem",
    "required": [
        "surveyDate",
        "workflow",
        "orderId",
        "plannedStartTime",
        "expectedEndTime",
        "startMode"
    ],
    "properties": {
        "surveyDate": {
            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        },
        "workflowPath": {
            "description": "absolute path of an object.",
            "type": "string",
            "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
            "maxLength": 255,
            "minLength": 1
        },
        "schedulePath": {
            "description": "absolute path of an object.",
            "type": "string",
            "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
            "maxLength": 255,
            "minLength": 1
        },
        "orderId": {
            "type": "string"
        },
        "plannedStartTime": {
            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        },
        "expectedEndTime": {
            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        },
        "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"
        },
        "historyId": {
            "type": "string"
        },
        "node": {
            "description": "only for orders",
            "type": "string"
        },
        "exitCode": {
            "type": "integer",
            "minimum": 0
        },
        "error": {
            "javaType": "com.sos.joc.model.common.Err",
            "type": "object",
            "required": [
                "code",
                "message"
            ],
            "properties": {
                "code": {
                    "type": "string"
                },
                "message": {
                    "type": "string"
                }
            }
        },
        "startMode": {
            "description": "0=single_start, 1=start_start_repeat",
            "type": "integer",
            "default": 0
        },
        "period": {
            "description": "undefined for startMode=0",
            "required": [
                "begin",
                "end",
                "repeat"
            ],
            "type": "object",
            "properties": {
                "begin": {
                    "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                    "type": "string",
                    "format": "date-time"
                },
                "end": {
                    "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                    "type": "string",
                    "format": "date-time"
                },
                "repeat": {
                    "type": "number",
                    "format": "utc-millisec",
                    "minimum": 0
                }
            }
        },
        "late": {
            "type": "boolean"
        },
        "submitted": {
            "type": "boolean"
        },
        "state": {
            "javaType": "com.sos.joc.model.order.OrderState",
            "type": "object",
            "required": [
                "severity",
                "_text"
            ],
            "properties": {
                "severity": {
                    "type": "integer"
                },
                "_text": {
                    "javaType": "com.sos.joc.model.order.OrderStateText",
                    "type": "string",
                    "enum": [
                        "PLANNED",
                        "PENDING",
                        "RUNNING",
                        "INPROGRESS",
                        "SUSPENDED",
                        "FAILED",
                        "WAITING",
                        "BLOCKED",
                        "CANCELLED",
                        "FINISHED",
                        "RESUMED",
                        "SUSPENDMARKED",
                        "RESUMEMARKED",
                        "BROKEN",
                        "UNKNOWN"
                    ]
                }
            }
        }
    }
}