{
    "title": "daily plan projections response",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.dailyplan.projections.ProjectionsResponse",
    "type": "object",
    "required": [
        "deliveryDate"
    ],
    "properties": {
        "deliveryDate": {
            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        },
        "meta": {
            "javaType": "com.sos.joc.model.dailyplan.projections.items.meta.MetaItem",
            "type": "object",
            "additionalProperties": {
                "javaType": "com.sos.joc.model.dailyplan.projections.items.meta.ControllerInfoItem",
                "type": "object",
                "additionalProperties": {
                    "javaType": "com.sos.joc.model.dailyplan.projections.items.meta.ScheduleInfoItem",
                    "type": "object",
                    "required": [
                        "totalOrders",
                        "workflows"
                    ],
                    "properties": {
                        "totalOrders": {
                            "type": "number",
                            "format": "utc-millisec",
                            "minimum": 0
                        },
                        "workflows": {
                            "javaType": "com.sos.joc.model.dailyplan.projections.items.meta.WorkflowsItem",
                            "type": "object",
                            "additionalProperties": {
                                "javaType": "com.sos.joc.model.dailyplan.projections.items.meta.WorkflowItem",
                                "type": "object",
                                "properties": {
                                    "avg": {
                                        "type": "number",
                                        "format": "utc-millisec",
                                        "minimum": 0
                                    }
                                },
                                "additionalProperties": false
                            }
                        }
                    },
                    "additionalProperties": false
                }
            }
        },
        "years": {
            "javaType": "com.sos.joc.model.dailyplan.projections.items.year.YearsItem",
            "type": "object",
            "additionalProperties": {
                "javaType": "com.sos.joc.model.dailyplan.projections.items.year.MonthsItem",
                "type": "object",
                "additionalProperties": {
                    "javaType": "com.sos.joc.model.dailyplan.projections.items.year.MonthItem",
                    "type": "object",
                    "additionalProperties": {
                        "javaType": "com.sos.joc.model.dailyplan.projections.items.year.DateItem",
                        "type": "object",
                        "required": [
                            "periods"
                        ],
                        "properties": {
                            "planned": {
                                "type": "boolean"
                            },
                            "periods": {
                                "type": "array",
                                "items": {
                                    "javaType": "com.sos.joc.model.dailyplan.projections.items.year.DatePeriodItem",
                                    "type": "object",
                                    "required": [
                                        "schedule",
                                        "period"
                                    ],
                                    "properties": {
                                        "schedule": {
                                            "type": "string",
                                            "pattern": "^[^<>]*$",
                                            "maxLength": 255
                                        },
                                        "period": {
                                            "javaType": "com.sos.inventory.model.calendar.Period",
                                            "type": "object",
                                            "properties": {
                                                "singleStart": {
                                                    "type": "string",
                                                    "pattern": "^([0-1][0-9]|2[0-4])(:[0-5][0-9]){1,2}$"
                                                },
                                                "begin": {
                                                    "type": "string",
                                                    "pattern": "^([0-1][0-9]|2[0-4])(:[0-5][0-9]){1,2}$"
                                                },
                                                "end": {
                                                    "type": "string",
                                                    "pattern": "^([0-1][0-9]|2[0-4])(:[0-5][0-9]){1,2}$"
                                                },
                                                "repeat": {
                                                    "type": "string",
                                                    "pattern": "^([0-1][0-9]|2[0-4])(:[0-5][0-9]){1,2}$"
                                                },
                                                "whenHoliday": {
                                                    "javaType": "com.sos.inventory.model.calendar.WhenHolidayType",
                                                    "description": "default: SUPPRESS",
                                                    "type": "string",
                                                    "enum": [
                                                        "SUPPRESS",
                                                        "IGNORE",
                                                        "PREVIOUSNONWORKINGDAY",
                                                        "NEXTNONWORKINGDAY"
                                                    ]
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        },
                        "additionalProperties": false
                    }
                }
            }
        }
    },
    "additionalProperties": false
}