{
    "title": "jobStreamStarter",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "description": "List of all jobStream starters",
    "javaType": "com.sos.joc.model.jobstreams.JobStreamStarter",
    "type": "object",
    "properties": {
        "state": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        },
        "jobStreamStarterId": {
            "type": "number",
            "format": "utc-millisec",
            "minimum": 0
        },
        "starterName": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        },
        "title": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        },
        "nextStart": {
            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        },
        "endOfJobStream": {
            "description": "absolute path based on live folder of a JobScheduler object.",
            "type": "string",
            "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
            "maxLength": 255
        },
        "requiredJob": {
            "description": "absolute path based on live folder of a JobScheduler object.",
            "type": "string",
            "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
            "maxLength": 255
        },
        "jobs": {
            "type": "array",
            "items": {
                "description": "A job started by the jobstream starter",
                "javaType": "com.sos.joc.model.jobstreams.JobStreamJob",
                "type": "object",
                "properties": {
                    "jobId": {
                        "type": "number",
                        "format": "utc-millisec",
                        "minimum": 0
                    },
                    "job": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "startDelay": {
                        "type": "number",
                        "format": "utc-millisec",
                        "minimum": 0
                    },
                    "nextPeriod": {
                        "description": "Date time. Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ",
                        "type": "string",
                        "format": "date-time"
                    },
                    "skipOutCondition": {
                        "type": "boolean"
                    },
                    "inconditions": {
                        "type": "array",
                        "items": {
                            "description": "In Condition",
                            "javaType": "com.sos.joc.model.jobstreams.InCondition",
                            "type": "object",
                            "properties": {
                                "id": {
                                    "type": "number",
                                    "format": "utc-millisec",
                                    "minimum": 0
                                },
                                "jobStream": {
                                    "type": "string",
                                    "pattern": "^[^<>]*$",
                                    "maxLength": 255
                                },
                                "consumed": {
                                    "type": "boolean"
                                },
                                "markExpression": {
                                    "type": "boolean"
                                },
                                "skipOutCondition": {
                                    "type": "boolean"
                                },
                                "haveReferenceToOtherFolders": {
                                    "type": "boolean"
                                },
                                "conditionExpression": {
                                    "description": "Expression for Condition",
                                    "javaType": "com.sos.joc.model.jobstreams.ConditionExpression",
                                    "type": "object",
                                    "properties": {
                                        "expression": {
                                            "type": "string",
                                            "pattern": "^(?s)((?!<script( |>)|<svg/on).)*$"
                                        },
                                        "validatedExpression": {
                                            "type": "string",
                                            "pattern": "^(?s)((?!<script( |>)|<svg/on).)*$"
                                        },
                                        "value": {
                                            "type": "boolean"
                                        },
                                        "jobStreamEvents": {
                                            "type": "array",
                                            "items": {
                                                "type": "string",
                                                "pattern": "^[^<>]*$",
                                                "maxLength": 255
                                            }
                                        }
                                    }
                                },
                                "nextPeriod": {
                                    "description": "Date time. Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ",
                                    "type": "string",
                                    "format": "date-time"
                                },
                                "inconditionCommands": {
                                    "type": "array",
                                    "items": {
                                        "description": "In Condition",
                                        "javaType": "com.sos.joc.model.jobstreams.InConditionCommand",
                                        "type": "object",
                                        "properties": {
                                            "id": {
                                                "type": "number",
                                                "format": "utc-millisec",
                                                "minimum": 0
                                            },
                                            "command": {
                                                "type": "string",
                                                "pattern": "^[^<>]*$",
                                                "maxLength": 255
                                            },
                                            "commandParam": {
                                                "type": "string",
                                                "pattern": "^[^<>]*$",
                                                "maxLength": 255
                                            }
                                        }
                                    }
                                },
                                "outconditions": {
                                    "type": "array",
                                    "items": {
                                        "description": "List of all Conditions using an event",
                                        "javaType": "com.sos.joc.model.jobstreams.JobstreamConditions",
                                        "type": "object",
                                        "properties": {
                                            "jobStream": {
                                                "type": "string",
                                                "pattern": "^[^<>]*$",
                                                "maxLength": 255
                                            },
                                            "jobs": {
                                                "type": "array",
                                                "items": {
                                                    "description": "In Condition",
                                                    "javaType": "com.sos.joc.model.jobstreams.ConditionRef",
                                                    "type": "object",
                                                    "properties": {
                                                        "job": {
                                                            "description": "absolute path based on live folder of a JobScheduler object.",
                                                            "type": "string",
                                                            "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
                                                            "maxLength": 255
                                                        },
                                                        "expressions": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "string",
                                                                "pattern": "^(?s)((?!<script( |>)|<svg/on).)*$"
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "outconditions": {
                        "type": "array",
                        "items": {
                            "description": "Out Condition",
                            "javaType": "com.sos.joc.model.jobstreams.OutCondition",
                            "type": "object",
                            "properties": {
                                "id": {
                                    "type": "number",
                                    "format": "utc-millisec",
                                    "minimum": 0
                                },
                                "jobStream": {
                                    "type": "string",
                                    "pattern": "^[^<>]*$",
                                    "maxLength": 255
                                },
                                "conditionExpression": {
                                    "description": "Expression for Condition",
                                    "javaType": "com.sos.joc.model.jobstreams.ConditionExpression",
                                    "type": "object",
                                    "properties": {
                                        "expression": {
                                            "type": "string",
                                            "pattern": "^(?s)((?!<script( |>)|<svg/on).)*$"
                                        },
                                        "validatedExpression": {
                                            "type": "string",
                                            "pattern": "^(?s)((?!<script( |>)|<svg/on).)*$"
                                        },
                                        "value": {
                                            "type": "boolean"
                                        },
                                        "jobStreamEvents": {
                                            "type": "array",
                                            "items": {
                                                "type": "string",
                                                "pattern": "^[^<>]*$",
                                                "maxLength": 255
                                            }
                                        }
                                    }
                                },
                                "outconditionEvents": {
                                    "type": "array",
                                    "items": {
                                        "description": "Out Condition Event",
                                        "javaType": "com.sos.joc.model.jobstreams.OutConditionEvent",
                                        "type": "object",
                                        "properties": {
                                            "id": {
                                                "type": "number",
                                                "format": "utc-millisec",
                                                "minimum": 0
                                            },
                                            "command": {
                                                "type": "string",
                                                "pattern": "^[^<>]*$",
                                                "maxLength": 255
                                            },
                                            "event": {
                                                "type": "string",
                                                "pattern": "^[^<>]*$",
                                                "maxLength": 255
                                            },
                                            "exists": {
                                                "type": "boolean"
                                            },
                                            "globalEvent": {
                                                "type": "boolean"
                                            },
                                            "existsInJobStream": {
                                                "type": "boolean"
                                            },
                                            "jobStream": {
                                                "type": "string",
                                                "pattern": "^[^<>]*$",
                                                "maxLength": 255
                                            }
                                        }
                                    }
                                },
                                "inconditions": {
                                    "type": "array",
                                    "items": {
                                        "description": "List of all Conditions using an event",
                                        "javaType": "com.sos.joc.model.jobstreams.JobstreamConditions",
                                        "type": "object",
                                        "properties": {
                                            "jobStream": {
                                                "type": "string",
                                                "pattern": "^[^<>]*$",
                                                "maxLength": 255
                                            },
                                            "jobs": {
                                                "type": "array",
                                                "items": {
                                                    "description": "In Condition",
                                                    "javaType": "com.sos.joc.model.jobstreams.ConditionRef",
                                                    "type": "object",
                                                    "properties": {
                                                        "job": {
                                                            "description": "absolute path based on live folder of a JobScheduler object.",
                                                            "type": "string",
                                                            "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
                                                            "maxLength": 255
                                                        },
                                                        "expressions": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "string",
                                                                "pattern": "^(?s)((?!<script( |>)|<svg/on).)*$"
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "runTime": {
            "javaType": "com.sos.joc.model.joe.schedule.RunTime",
            "type": "object",
            "xmlElement": "run_time",
            "javaInterfaces": [
                "com.sos.joc.model.joe.common.IJSObject"
            ],
            "extends": {
                "javaType": "com.sos.joc.model.joe.schedule.AbstractSchedule",
                "type": "object",
                "properties": {
                    "timeZone": {
                        "type": "string"
                    },
                    "begin": {
                        "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                        "type": "string"
                    },
                    "end": {
                        "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                        "type": "string"
                    },
                    "letRun": {
                        "description": "possible values: yes, no, 1, 0, true, false",
                        "type": "string",
                        "default": "false"
                    },
                    "runOnce": {
                        "xmlElement": "once",
                        "description": "possible values: yes, no, 1, 0, true, false",
                        "type": "string",
                        "default": "false"
                    },
                    "periods": {
                        "xmlElement": "period",
                        "type": "array",
                        "items": {
                            "javaType": "com.sos.joc.model.joe.schedule.Period",
                            "type": "object",
                            "properties": {
                                "begin": {
                                    "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                    "type": "string"
                                },
                                "end": {
                                    "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                    "type": "string"
                                },
                                "singleStart": {
                                    "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                    "type": "string"
                                },
                                "letRun": {
                                    "description": "possible values: yes, no, 1, 0, true, false",
                                    "type": "string",
                                    "default": "false"
                                },
                                "runOnce": {
                                    "xmlElement": "start_once",
                                    "description": "possible values: yes, no, 1, 0, true, false",
                                    "type": "string",
                                    "default": "false"
                                },
                                "repeat": {
                                    "description": "pattern: ([0-9]+)|([0-9]+:[0-9]{2}(:[0-9]{2})?)",
                                    "type": "string"
                                },
                                "absoluteRepeat": {
                                    "description": "pattern: ([0-9]+)|([0-9]+:[0-9]{2}(:[0-9]{2})?)",
                                    "type": "string"
                                },
                                "whenHoliday": {
                                    "description": "possible values: suppress (default), ignore_holiday, previous_non_holiday, next_non_holiday",
                                    "type": "string",
                                    "default": "suppress"
                                }
                            }
                        }
                    },
                    "ats": {
                        "xmlElement": "at",
                        "type": "array",
                        "items": {
                            "type": "object",
                            "javaType": "com.sos.joc.model.joe.schedule.At",
                            "properties": {
                                "at": {
                                    "description": "yyyy-mm-dd HH:MM[:SS]",
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "dates": {
                        "xmlElement": "date",
                        "type": "array",
                        "items": {
                            "xmlElement": "date",
                            "type": "object",
                            "javaType": "com.sos.joc.model.joe.schedule.Date",
                            "required": [
                                "date"
                            ],
                            "properties": {
                                "date": {
                                    "type": "string"
                                },
                                "calendar": {
                                    "type": "string"
                                },
                                "periods": {
                                    "xmlElement": "period",
                                    "type": "array",
                                    "items": {
                                        "javaType": "com.sos.joc.model.joe.schedule.Period",
                                        "type": "object",
                                        "properties": {
                                            "begin": {
                                                "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                "type": "string"
                                            },
                                            "end": {
                                                "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                "type": "string"
                                            },
                                            "singleStart": {
                                                "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                "type": "string"
                                            },
                                            "letRun": {
                                                "description": "possible values: yes, no, 1, 0, true, false",
                                                "type": "string",
                                                "default": "false"
                                            },
                                            "runOnce": {
                                                "xmlElement": "start_once",
                                                "description": "possible values: yes, no, 1, 0, true, false",
                                                "type": "string",
                                                "default": "false"
                                            },
                                            "repeat": {
                                                "description": "pattern: ([0-9]+)|([0-9]+:[0-9]{2}(:[0-9]{2})?)",
                                                "type": "string"
                                            },
                                            "absoluteRepeat": {
                                                "description": "pattern: ([0-9]+)|([0-9]+:[0-9]{2}(:[0-9]{2})?)",
                                                "type": "string"
                                            },
                                            "whenHoliday": {
                                                "description": "possible values: suppress (default), ignore_holiday, previous_non_holiday, next_non_holiday",
                                                "type": "string",
                                                "default": "suppress"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "weekdays": {
                        "type": "object",
                        "javaType": "com.sos.joc.model.joe.schedule.Weekdays",
                        "properties": {
                            "days": {
                                "xmlElement": "day",
                                "type": "array",
                                "items": {
                                    "xmlElement": "day",
                                    "type": "object",
                                    "javaType": "com.sos.joc.model.joe.schedule.Day",
                                    "required": [
                                        "day"
                                    ],
                                    "properties": {
                                        "day": {
                                            "description": "[01234567]|(so(nntag)?)|(mo(ntag)?)|(di(enstag)?)|(mi(ttwoch)?)|(do(nnerstag)?)|(fr(eitag)?)|(sa(mstag)?)|(sun(day)?)|(mon(day)?)|(tue(sday)?)|(wed(nesday)?)|(thu(rsday)?)|(fri(day)?)|(sat(urday)?) for weekdays (where sunday is 0 or 7) or 1-31 for monthdays and 0-30 for ultimos",
                                            "type": "string"
                                        },
                                        "periods": {
                                            "xmlElement": "period",
                                            "type": "array",
                                            "items": {
                                                "javaType": "com.sos.joc.model.joe.schedule.Period",
                                                "type": "object",
                                                "properties": {
                                                    "begin": {
                                                        "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                        "type": "string"
                                                    },
                                                    "end": {
                                                        "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                        "type": "string"
                                                    },
                                                    "singleStart": {
                                                        "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                        "type": "string"
                                                    },
                                                    "letRun": {
                                                        "description": "possible values: yes, no, 1, 0, true, false",
                                                        "type": "string",
                                                        "default": "false"
                                                    },
                                                    "runOnce": {
                                                        "xmlElement": "start_once",
                                                        "description": "possible values: yes, no, 1, 0, true, false",
                                                        "type": "string",
                                                        "default": "false"
                                                    },
                                                    "repeat": {
                                                        "description": "pattern: ([0-9]+)|([0-9]+:[0-9]{2}(:[0-9]{2})?)",
                                                        "type": "string"
                                                    },
                                                    "absoluteRepeat": {
                                                        "description": "pattern: ([0-9]+)|([0-9]+:[0-9]{2}(:[0-9]{2})?)",
                                                        "type": "string"
                                                    },
                                                    "whenHoliday": {
                                                        "description": "possible values: suppress (default), ignore_holiday, previous_non_holiday, next_non_holiday",
                                                        "type": "string",
                                                        "default": "suppress"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "monthdays": {
                        "type": "object",
                        "javaType": "com.sos.joc.model.joe.schedule.Monthdays",
                        "properties": {
                            "days": {
                                "xmlElement": "day",
                                "type": "array",
                                "items": {
                                    "xmlElement": "day",
                                    "type": "object",
                                    "javaType": "com.sos.joc.model.joe.schedule.Day",
                                    "required": [
                                        "day"
                                    ],
                                    "properties": {
                                        "day": {
                                            "description": "[01234567]|(so(nntag)?)|(mo(ntag)?)|(di(enstag)?)|(mi(ttwoch)?)|(do(nnerstag)?)|(fr(eitag)?)|(sa(mstag)?)|(sun(day)?)|(mon(day)?)|(tue(sday)?)|(wed(nesday)?)|(thu(rsday)?)|(fri(day)?)|(sat(urday)?) for weekdays (where sunday is 0 or 7) or 1-31 for monthdays and 0-30 for ultimos",
                                            "type": "string"
                                        },
                                        "periods": {
                                            "xmlElement": "period",
                                            "type": "array",
                                            "items": {
                                                "javaType": "com.sos.joc.model.joe.schedule.Period",
                                                "type": "object",
                                                "properties": {
                                                    "begin": {
                                                        "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                        "type": "string"
                                                    },
                                                    "end": {
                                                        "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                        "type": "string"
                                                    },
                                                    "singleStart": {
                                                        "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                        "type": "string"
                                                    },
                                                    "letRun": {
                                                        "description": "possible values: yes, no, 1, 0, true, false",
                                                        "type": "string",
                                                        "default": "false"
                                                    },
                                                    "runOnce": {
                                                        "xmlElement": "start_once",
                                                        "description": "possible values: yes, no, 1, 0, true, false",
                                                        "type": "string",
                                                        "default": "false"
                                                    },
                                                    "repeat": {
                                                        "description": "pattern: ([0-9]+)|([0-9]+:[0-9]{2}(:[0-9]{2})?)",
                                                        "type": "string"
                                                    },
                                                    "absoluteRepeat": {
                                                        "description": "pattern: ([0-9]+)|([0-9]+:[0-9]{2}(:[0-9]{2})?)",
                                                        "type": "string"
                                                    },
                                                    "whenHoliday": {
                                                        "description": "possible values: suppress (default), ignore_holiday, previous_non_holiday, next_non_holiday",
                                                        "type": "string",
                                                        "default": "suppress"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            },
                            "weekdays": {
                                "type": "array",
                                "xmlElement": "weekday",
                                "items": {
                                    "type": "object",
                                    "javaType": "com.sos.joc.model.joe.schedule.WeekdayOfMonth",
                                    "xmlElement": "weekday",
                                    "required": [
                                        "day",
                                        "which"
                                    ],
                                    "properties": {
                                        "day": {
                                            "description": "[01234567]|(so(nntag)?)|(mo(ntag)?)|(di(enstag)?)|(mi(ttwoch)?)|(do(nnerstag)?)|(fr(eitag)?)|(sa(mstag)?)|(sun(day)?)|(mon(day)?)|(tue(sday)?)|(wed(nesday)?)|(thu(rsday)?)|(fri(day)?)|(sat(urday)?)",
                                            "type": "string"
                                        },
                                        "which": {
                                            "description": "possible value: -4, -3, -2, -1, 1, 2, 3, 4",
                                            "type": "integer"
                                        },
                                        "periods": {
                                            "xmlElement": "period",
                                            "type": "array",
                                            "items": {
                                                "javaType": "com.sos.joc.model.joe.schedule.Period",
                                                "type": "object",
                                                "properties": {
                                                    "begin": {
                                                        "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                        "type": "string"
                                                    },
                                                    "end": {
                                                        "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                        "type": "string"
                                                    },
                                                    "singleStart": {
                                                        "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                        "type": "string"
                                                    },
                                                    "letRun": {
                                                        "description": "possible values: yes, no, 1, 0, true, false",
                                                        "type": "string",
                                                        "default": "false"
                                                    },
                                                    "runOnce": {
                                                        "xmlElement": "start_once",
                                                        "description": "possible values: yes, no, 1, 0, true, false",
                                                        "type": "string",
                                                        "default": "false"
                                                    },
                                                    "repeat": {
                                                        "description": "pattern: ([0-9]+)|([0-9]+:[0-9]{2}(:[0-9]{2})?)",
                                                        "type": "string"
                                                    },
                                                    "absoluteRepeat": {
                                                        "description": "pattern: ([0-9]+)|([0-9]+:[0-9]{2}(:[0-9]{2})?)",
                                                        "type": "string"
                                                    },
                                                    "whenHoliday": {
                                                        "description": "possible values: suppress (default), ignore_holiday, previous_non_holiday, next_non_holiday",
                                                        "type": "string",
                                                        "default": "suppress"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "ultimos": {
                        "type": "object",
                        "javaType": "com.sos.joc.model.joe.schedule.Ultimos",
                        "properties": {
                            "days": {
                                "xmlElement": "day",
                                "type": "array",
                                "items": {
                                    "xmlElement": "day",
                                    "type": "object",
                                    "javaType": "com.sos.joc.model.joe.schedule.Day",
                                    "required": [
                                        "day"
                                    ],
                                    "properties": {
                                        "day": {
                                            "description": "[01234567]|(so(nntag)?)|(mo(ntag)?)|(di(enstag)?)|(mi(ttwoch)?)|(do(nnerstag)?)|(fr(eitag)?)|(sa(mstag)?)|(sun(day)?)|(mon(day)?)|(tue(sday)?)|(wed(nesday)?)|(thu(rsday)?)|(fri(day)?)|(sat(urday)?) for weekdays (where sunday is 0 or 7) or 1-31 for monthdays and 0-30 for ultimos",
                                            "type": "string"
                                        },
                                        "periods": {
                                            "xmlElement": "period",
                                            "type": "array",
                                            "items": {
                                                "javaType": "com.sos.joc.model.joe.schedule.Period",
                                                "type": "object",
                                                "properties": {
                                                    "begin": {
                                                        "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                        "type": "string"
                                                    },
                                                    "end": {
                                                        "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                        "type": "string"
                                                    },
                                                    "singleStart": {
                                                        "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                        "type": "string"
                                                    },
                                                    "letRun": {
                                                        "description": "possible values: yes, no, 1, 0, true, false",
                                                        "type": "string",
                                                        "default": "false"
                                                    },
                                                    "runOnce": {
                                                        "xmlElement": "start_once",
                                                        "description": "possible values: yes, no, 1, 0, true, false",
                                                        "type": "string",
                                                        "default": "false"
                                                    },
                                                    "repeat": {
                                                        "description": "pattern: ([0-9]+)|([0-9]+:[0-9]{2}(:[0-9]{2})?)",
                                                        "type": "string"
                                                    },
                                                    "absoluteRepeat": {
                                                        "description": "pattern: ([0-9]+)|([0-9]+:[0-9]{2}(:[0-9]{2})?)",
                                                        "type": "string"
                                                    },
                                                    "whenHoliday": {
                                                        "description": "possible values: suppress (default), ignore_holiday, previous_non_holiday, next_non_holiday",
                                                        "type": "string",
                                                        "default": "suppress"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "months": {
                        "type": "array",
                        "xmlElement": "month",
                        "items": {
                            "type": "object",
                            "javaType": "com.sos.joc.model.joe.schedule.Month",
                            "xmlElement": "month",
                            "properties": {
                                "month": {
                                    "description": "unordered space separated list of 1-12 or january, february, march, april, may, june, july, august, september, october, november, december",
                                    "type": "string"
                                },
                                "periods": {
                                    "xmlElement": "period",
                                    "type": "array",
                                    "items": {
                                        "javaType": "com.sos.joc.model.joe.schedule.Period",
                                        "type": "object",
                                        "properties": {
                                            "begin": {
                                                "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                "type": "string"
                                            },
                                            "end": {
                                                "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                "type": "string"
                                            },
                                            "singleStart": {
                                                "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                "type": "string"
                                            },
                                            "letRun": {
                                                "description": "possible values: yes, no, 1, 0, true, false",
                                                "type": "string",
                                                "default": "false"
                                            },
                                            "runOnce": {
                                                "xmlElement": "start_once",
                                                "description": "possible values: yes, no, 1, 0, true, false",
                                                "type": "string",
                                                "default": "false"
                                            },
                                            "repeat": {
                                                "description": "pattern: ([0-9]+)|([0-9]+:[0-9]{2}(:[0-9]{2})?)",
                                                "type": "string"
                                            },
                                            "absoluteRepeat": {
                                                "description": "pattern: ([0-9]+)|([0-9]+:[0-9]{2}(:[0-9]{2})?)",
                                                "type": "string"
                                            },
                                            "whenHoliday": {
                                                "description": "possible values: suppress (default), ignore_holiday, previous_non_holiday, next_non_holiday",
                                                "type": "string",
                                                "default": "suppress"
                                            }
                                        }
                                    }
                                },
                                "weekdays": {
                                    "type": "object",
                                    "javaType": "com.sos.joc.model.joe.schedule.Weekdays",
                                    "properties": {
                                        "days": {
                                            "xmlElement": "day",
                                            "type": "array",
                                            "items": {
                                                "xmlElement": "day",
                                                "type": "object",
                                                "javaType": "com.sos.joc.model.joe.schedule.Day",
                                                "required": [
                                                    "day"
                                                ],
                                                "properties": {
                                                    "day": {
                                                        "description": "[01234567]|(so(nntag)?)|(mo(ntag)?)|(di(enstag)?)|(mi(ttwoch)?)|(do(nnerstag)?)|(fr(eitag)?)|(sa(mstag)?)|(sun(day)?)|(mon(day)?)|(tue(sday)?)|(wed(nesday)?)|(thu(rsday)?)|(fri(day)?)|(sat(urday)?) for weekdays (where sunday is 0 or 7) or 1-31 for monthdays and 0-30 for ultimos",
                                                        "type": "string"
                                                    },
                                                    "periods": {
                                                        "xmlElement": "period",
                                                        "type": "array",
                                                        "items": {
                                                            "javaType": "com.sos.joc.model.joe.schedule.Period",
                                                            "type": "object",
                                                            "properties": {
                                                                "begin": {
                                                                    "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                                    "type": "string"
                                                                },
                                                                "end": {
                                                                    "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                                    "type": "string"
                                                                },
                                                                "singleStart": {
                                                                    "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                                    "type": "string"
                                                                },
                                                                "letRun": {
                                                                    "description": "possible values: yes, no, 1, 0, true, false",
                                                                    "type": "string",
                                                                    "default": "false"
                                                                },
                                                                "runOnce": {
                                                                    "xmlElement": "start_once",
                                                                    "description": "possible values: yes, no, 1, 0, true, false",
                                                                    "type": "string",
                                                                    "default": "false"
                                                                },
                                                                "repeat": {
                                                                    "description": "pattern: ([0-9]+)|([0-9]+:[0-9]{2}(:[0-9]{2})?)",
                                                                    "type": "string"
                                                                },
                                                                "absoluteRepeat": {
                                                                    "description": "pattern: ([0-9]+)|([0-9]+:[0-9]{2}(:[0-9]{2})?)",
                                                                    "type": "string"
                                                                },
                                                                "whenHoliday": {
                                                                    "description": "possible values: suppress (default), ignore_holiday, previous_non_holiday, next_non_holiday",
                                                                    "type": "string",
                                                                    "default": "suppress"
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                },
                                "monthdays": {
                                    "type": "object",
                                    "javaType": "com.sos.joc.model.joe.schedule.Monthdays",
                                    "properties": {
                                        "days": {
                                            "xmlElement": "day",
                                            "type": "array",
                                            "items": {
                                                "xmlElement": "day",
                                                "type": "object",
                                                "javaType": "com.sos.joc.model.joe.schedule.Day",
                                                "required": [
                                                    "day"
                                                ],
                                                "properties": {
                                                    "day": {
                                                        "description": "[01234567]|(so(nntag)?)|(mo(ntag)?)|(di(enstag)?)|(mi(ttwoch)?)|(do(nnerstag)?)|(fr(eitag)?)|(sa(mstag)?)|(sun(day)?)|(mon(day)?)|(tue(sday)?)|(wed(nesday)?)|(thu(rsday)?)|(fri(day)?)|(sat(urday)?) for weekdays (where sunday is 0 or 7) or 1-31 for monthdays and 0-30 for ultimos",
                                                        "type": "string"
                                                    },
                                                    "periods": {
                                                        "xmlElement": "period",
                                                        "type": "array",
                                                        "items": {
                                                            "javaType": "com.sos.joc.model.joe.schedule.Period",
                                                            "type": "object",
                                                            "properties": {
                                                                "begin": {
                                                                    "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                                    "type": "string"
                                                                },
                                                                "end": {
                                                                    "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                                    "type": "string"
                                                                },
                                                                "singleStart": {
                                                                    "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                                    "type": "string"
                                                                },
                                                                "letRun": {
                                                                    "description": "possible values: yes, no, 1, 0, true, false",
                                                                    "type": "string",
                                                                    "default": "false"
                                                                },
                                                                "runOnce": {
                                                                    "xmlElement": "start_once",
                                                                    "description": "possible values: yes, no, 1, 0, true, false",
                                                                    "type": "string",
                                                                    "default": "false"
                                                                },
                                                                "repeat": {
                                                                    "description": "pattern: ([0-9]+)|([0-9]+:[0-9]{2}(:[0-9]{2})?)",
                                                                    "type": "string"
                                                                },
                                                                "absoluteRepeat": {
                                                                    "description": "pattern: ([0-9]+)|([0-9]+:[0-9]{2}(:[0-9]{2})?)",
                                                                    "type": "string"
                                                                },
                                                                "whenHoliday": {
                                                                    "description": "possible values: suppress (default), ignore_holiday, previous_non_holiday, next_non_holiday",
                                                                    "type": "string",
                                                                    "default": "suppress"
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        },
                                        "weekdays": {
                                            "type": "array",
                                            "xmlElement": "weekday",
                                            "items": {
                                                "type": "object",
                                                "javaType": "com.sos.joc.model.joe.schedule.WeekdayOfMonth",
                                                "xmlElement": "weekday",
                                                "required": [
                                                    "day",
                                                    "which"
                                                ],
                                                "properties": {
                                                    "day": {
                                                        "description": "[01234567]|(so(nntag)?)|(mo(ntag)?)|(di(enstag)?)|(mi(ttwoch)?)|(do(nnerstag)?)|(fr(eitag)?)|(sa(mstag)?)|(sun(day)?)|(mon(day)?)|(tue(sday)?)|(wed(nesday)?)|(thu(rsday)?)|(fri(day)?)|(sat(urday)?)",
                                                        "type": "string"
                                                    },
                                                    "which": {
                                                        "description": "possible value: -4, -3, -2, -1, 1, 2, 3, 4",
                                                        "type": "integer"
                                                    },
                                                    "periods": {
                                                        "xmlElement": "period",
                                                        "type": "array",
                                                        "items": {
                                                            "javaType": "com.sos.joc.model.joe.schedule.Period",
                                                            "type": "object",
                                                            "properties": {
                                                                "begin": {
                                                                    "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                                    "type": "string"
                                                                },
                                                                "end": {
                                                                    "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                                    "type": "string"
                                                                },
                                                                "singleStart": {
                                                                    "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                                    "type": "string"
                                                                },
                                                                "letRun": {
                                                                    "description": "possible values: yes, no, 1, 0, true, false",
                                                                    "type": "string",
                                                                    "default": "false"
                                                                },
                                                                "runOnce": {
                                                                    "xmlElement": "start_once",
                                                                    "description": "possible values: yes, no, 1, 0, true, false",
                                                                    "type": "string",
                                                                    "default": "false"
                                                                },
                                                                "repeat": {
                                                                    "description": "pattern: ([0-9]+)|([0-9]+:[0-9]{2}(:[0-9]{2})?)",
                                                                    "type": "string"
                                                                },
                                                                "absoluteRepeat": {
                                                                    "description": "pattern: ([0-9]+)|([0-9]+:[0-9]{2}(:[0-9]{2})?)",
                                                                    "type": "string"
                                                                },
                                                                "whenHoliday": {
                                                                    "description": "possible values: suppress (default), ignore_holiday, previous_non_holiday, next_non_holiday",
                                                                    "type": "string",
                                                                    "default": "suppress"
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                },
                                "ultimos": {
                                    "type": "object",
                                    "javaType": "com.sos.joc.model.joe.schedule.Ultimos",
                                    "properties": {
                                        "days": {
                                            "xmlElement": "day",
                                            "type": "array",
                                            "items": {
                                                "xmlElement": "day",
                                                "type": "object",
                                                "javaType": "com.sos.joc.model.joe.schedule.Day",
                                                "required": [
                                                    "day"
                                                ],
                                                "properties": {
                                                    "day": {
                                                        "description": "[01234567]|(so(nntag)?)|(mo(ntag)?)|(di(enstag)?)|(mi(ttwoch)?)|(do(nnerstag)?)|(fr(eitag)?)|(sa(mstag)?)|(sun(day)?)|(mon(day)?)|(tue(sday)?)|(wed(nesday)?)|(thu(rsday)?)|(fri(day)?)|(sat(urday)?) for weekdays (where sunday is 0 or 7) or 1-31 for monthdays and 0-30 for ultimos",
                                                        "type": "string"
                                                    },
                                                    "periods": {
                                                        "xmlElement": "period",
                                                        "type": "array",
                                                        "items": {
                                                            "javaType": "com.sos.joc.model.joe.schedule.Period",
                                                            "type": "object",
                                                            "properties": {
                                                                "begin": {
                                                                    "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                                    "type": "string"
                                                                },
                                                                "end": {
                                                                    "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                                    "type": "string"
                                                                },
                                                                "singleStart": {
                                                                    "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                                    "type": "string"
                                                                },
                                                                "letRun": {
                                                                    "description": "possible values: yes, no, 1, 0, true, false",
                                                                    "type": "string",
                                                                    "default": "false"
                                                                },
                                                                "runOnce": {
                                                                    "xmlElement": "start_once",
                                                                    "description": "possible values: yes, no, 1, 0, true, false",
                                                                    "type": "string",
                                                                    "default": "false"
                                                                },
                                                                "repeat": {
                                                                    "description": "pattern: ([0-9]+)|([0-9]+:[0-9]{2}(:[0-9]{2})?)",
                                                                    "type": "string"
                                                                },
                                                                "absoluteRepeat": {
                                                                    "description": "pattern: ([0-9]+)|([0-9]+:[0-9]{2}(:[0-9]{2})?)",
                                                                    "type": "string"
                                                                },
                                                                "whenHoliday": {
                                                                    "description": "possible values: suppress (default), ignore_holiday, previous_non_holiday, next_non_holiday",
                                                                    "type": "string",
                                                                    "default": "suppress"
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "holidays": {
                        "type": "object",
                        "javaType": "com.sos.joc.model.joe.schedule.Holidays",
                        "properties": {
                            "includes": {
                                "type": "array",
                                "xmlElement": "include",
                                "items": {
                                    "javaType": "com.sos.joc.model.joe.common.Include",
                                    "type": "object",
                                    "description": "usage of file and liveFile are exclusive",
                                    "properties": {
                                        "file": {
                                            "type": "string"
                                        },
                                        "liveFile": {
                                            "type": "string"
                                        }
                                    }
                                }
                            },
                            "weekdays": {
                                "type": "object",
                                "javaType": "com.sos.joc.model.joe.schedule.Weekdays",
                                "properties": {
                                    "days": {
                                        "xmlElement": "day",
                                        "type": "array",
                                        "items": {
                                            "xmlElement": "day",
                                            "type": "object",
                                            "javaType": "com.sos.joc.model.joe.schedule.Day",
                                            "required": [
                                                "day"
                                            ],
                                            "properties": {
                                                "day": {
                                                    "description": "[01234567]|(so(nntag)?)|(mo(ntag)?)|(di(enstag)?)|(mi(ttwoch)?)|(do(nnerstag)?)|(fr(eitag)?)|(sa(mstag)?)|(sun(day)?)|(mon(day)?)|(tue(sday)?)|(wed(nesday)?)|(thu(rsday)?)|(fri(day)?)|(sat(urday)?) for weekdays (where sunday is 0 or 7) or 1-31 for monthdays and 0-30 for ultimos",
                                                    "type": "string"
                                                },
                                                "periods": {
                                                    "xmlElement": "period",
                                                    "type": "array",
                                                    "items": {
                                                        "javaType": "com.sos.joc.model.joe.schedule.Period",
                                                        "type": "object",
                                                        "properties": {
                                                            "begin": {
                                                                "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                                "type": "string"
                                                            },
                                                            "end": {
                                                                "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                                "type": "string"
                                                            },
                                                            "singleStart": {
                                                                "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                                "type": "string"
                                                            },
                                                            "letRun": {
                                                                "description": "possible values: yes, no, 1, 0, true, false",
                                                                "type": "string",
                                                                "default": "false"
                                                            },
                                                            "runOnce": {
                                                                "xmlElement": "start_once",
                                                                "description": "possible values: yes, no, 1, 0, true, false",
                                                                "type": "string",
                                                                "default": "false"
                                                            },
                                                            "repeat": {
                                                                "description": "pattern: ([0-9]+)|([0-9]+:[0-9]{2}(:[0-9]{2})?)",
                                                                "type": "string"
                                                            },
                                                            "absoluteRepeat": {
                                                                "description": "pattern: ([0-9]+)|([0-9]+:[0-9]{2}(:[0-9]{2})?)",
                                                                "type": "string"
                                                            },
                                                            "whenHoliday": {
                                                                "description": "possible values: suppress (default), ignore_holiday, previous_non_holiday, next_non_holiday",
                                                                "type": "string",
                                                                "default": "suppress"
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            },
                            "days": {
                                "xmlElement": "holiday",
                                "type": "array",
                                "items": {
                                    "xmlElement": "holiday",
                                    "type": "object",
                                    "javaType": "com.sos.joc.model.joe.schedule.Holiday",
                                    "required": [
                                        "date"
                                    ],
                                    "properties": {
                                        "date": {
                                            "type": "string"
                                        },
                                        "calendar": {
                                            "type": "string"
                                        },
                                        "periods": {
                                            "xmlElement": "period",
                                            "type": "array",
                                            "items": {
                                                "javaType": "com.sos.joc.model.joe.schedule.Period",
                                                "type": "object",
                                                "properties": {
                                                    "begin": {
                                                        "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                        "type": "string"
                                                    },
                                                    "end": {
                                                        "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                        "type": "string"
                                                    },
                                                    "singleStart": {
                                                        "description": "pattern: [0-9]{1,2}:[0-9]{2}(:[0-9]{2})?",
                                                        "type": "string"
                                                    },
                                                    "letRun": {
                                                        "description": "possible values: yes, no, 1, 0, true, false",
                                                        "type": "string",
                                                        "default": "false"
                                                    },
                                                    "runOnce": {
                                                        "xmlElement": "start_once",
                                                        "description": "possible values: yes, no, 1, 0, true, false",
                                                        "type": "string",
                                                        "default": "false"
                                                    },
                                                    "repeat": {
                                                        "description": "pattern: ([0-9]+)|([0-9]+:[0-9]{2}(:[0-9]{2})?)",
                                                        "type": "string"
                                                    },
                                                    "absoluteRepeat": {
                                                        "description": "pattern: ([0-9]+)|([0-9]+:[0-9]{2}(:[0-9]{2})?)",
                                                        "type": "string"
                                                    },
                                                    "whenHoliday": {
                                                        "description": "possible values: suppress (default), ignore_holiday, previous_non_holiday, next_non_holiday",
                                                        "type": "string",
                                                        "default": "suppress"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "calendars": {
                        "type": "string",
                        "isXmlCData": true
                    }
                }
            },
            "properties": {
                "schedule": {
                    "description": "path to a schedule",
                    "type": "string"
                }
            }
        },
        "params": {
            "type": "array",
            "items": {
                "javaType": "com.sos.joc.model.common.NameValuePair",
                "type": "object",
                "required": [
                    "name",
                    "value"
                ],
                "properties": {
                    "name": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "value": {
                        "type": "string",
                        "pattern": "^(?s)((?!<script( |>)|<svg/on).)*$"
                    }
                }
            }
        }
    }
}