{
    "title": "DailyPlanHistory",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.dailyplan.DailyPlanHistory",
    "type": "object",
    "required": [
        "dailyPlans"
    ],
    "properties": {
        "deliveryDate": {
            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        },
        "dailyPlans": {
            "type": "array",
            "items": {
                "type": "object",
                "javaType": "com.sos.joc.model.dailyplan.DailyPlanHistoryDateItem",
                "properties": {
                    "dailyPlanDate": {
                        "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                        "type": "string",
                        "format": "date-time"
                    },
                    "controllers": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "javaType": "com.sos.joc.model.dailyplan.DailyPlanHistoryControllerItem",
                            "properties": {
                                "controllerId": {
                                    "type": "string",
                                    "pattern": "^[^/\\<>?:\"|*]*$",
                                    "maxLength": 100
                                },
                                "submissions": {
                                    "type": "array",
                                    "items": {
                                        "type": "object",
                                        "javaType": "com.sos.joc.model.dailyplan.DailyPlanSubmissionTimes",
                                        "properties": {
                                            "submissionTime": {
                                                "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                                                "type": "string",
                                                "format": "date-time"
                                            },
                                            "orderIds": {
                                                "type": "array",
                                                "items": {
                                                    "type": "object",
                                                    "javaType": "com.sos.joc.model.dailyplan.DailyplanHistoryOrderItem",
                                                    "properties": {
                                                        "scheduledFor": {
                                                            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                                                            "type": "string",
                                                            "format": "date-time"
                                                        },
                                                        "workflowPath": {
                                                            "type": "string",
                                                            "pattern": "^[^<>]*$",
                                                            "maxLength": 255
                                                        },
                                                        "orderId": {
                                                            "type": "string"
                                                        },
                                                        "submitted": {
                                                            "type": "boolean"
                                                        }
                                                    }
                                                }
                                            },
                                            "warnMessages": {
                                                "type": "array",
                                                "items": {
                                                    "type": "string"
                                                }
                                            },
                                            "errorMessages": {
                                                "type": "array",
                                                "items": {
                                                    "type": "string"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}