{
    "title": "monthdays",
    "id": "schemas/joe/schedule/monthdays",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "javaType": "com.sos.joc.model.joe.schedule.Monthdays",
    "properties": {
        "days": {
            "id": "schemas/joe/schedule/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": {
                        "id": "schemas/joe/schedule/periods",
                        "xmlElement": "period",
                        "type": "array",
                        "items": {
                            "id": "schemas/joe/schedule/period",
                            "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": {
                        "id": "schemas/joe/schedule/periods",
                        "xmlElement": "period",
                        "type": "array",
                        "items": {
                            "id": "schemas/joe/schedule/period",
                            "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"
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}