{
    "title": "add order response",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.order.AddedOrders",
    "type": "object",
    "description": "if ok=true then orders collection is required",
    "required": [
        "deliveryDate"
    ],
    "properties": {
        "deliveryDate": {
            "description": "Date time. Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ",
            "type": "string",
            "format": "date-time"
        },
        "orders": {
            "type": "array",
            "items": {
                "javaType": "com.sos.joc.model.order.OrderPath200",
                "type": "object",
                "required": [
                    "jobChain",
                    "orderId",
                    "surveyDate"
                ],
                "properties": {
                    "jobChain": {
                        "description": "absolute path based on live folder of a JobScheduler object.",
                        "type": "string",
                        "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
                        "maxLength": 255
                    },
                    "orderId": {
                        "type": "string"
                    },
                    "surveyDate": {
                        "description": "Current date of the JobScheduler Master/Agent. Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ",
                        "type": "string",
                        "format": "date-time"
                    }
                }
            }
        },
        "ok": {
            "type": "boolean"
        },
        "errors": {
            "type": "array",
            "items": {
                "javaType": "com.sos.joc.model.common.Err419",
                "type": "object",
                "required": [
                    "surveyDate",
                    "path",
                    "code",
                    "message"
                ],
                "properties": {
                    "surveyDate": {
                        "description": "Current date of the JobScheduler Master/Agent. Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ",
                        "type": "string",
                        "format": "date-time"
                    },
                    "path": {
                        "description": "absolute path based on live folder of a JobScheduler object.",
                        "type": "string",
                        "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
                        "maxLength": 255
                    },
                    "code": {
                        "type": "string"
                    },
                    "message": {
                        "type": "string"
                    }
                }
            }
        }
    }
}