{
    "title": "run time",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.dailyplan.RunTime",
    "type": "object",
    "required": [
        "deliveryDate",
        "periods"
    ],
    "properties": {
        "deliveryDate": {
            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        },
        "periods": {
            "type": "array",
            "items": {
                "javaType": "com.sos.inventory.model.calendar.Period",
                "type": "object",
                "properties": {
                    "singleStart": {
                        "type": "string",
                        "pattern": "^[0-9:]*$"
                    },
                    "begin": {
                        "type": "string",
                        "pattern": "^[0-9:]*$"
                    },
                    "end": {
                        "type": "string",
                        "pattern": "^[0-9:]*$"
                    },
                    "repeat": {
                        "type": "string",
                        "pattern": "^[0-9:]*$"
                    },
                    "whenHoliday": {
                        "javaType": "com.sos.inventory.model.calendar.WhenHolidayType",
                        "description": "default: SUPPRESS",
                        "type": "string",
                        "enum": [
                            "SUPPRESS",
                            "IGNORE",
                            "PREVIOUSNONWORKINGDAY",
                            "NEXTNONWORKINGDAY"
                        ]
                    }
                }
            }
        }
    }
}