{
    "title": "month",
    "id": "schemas/calendar/month",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.calendar.Months",
    "type": "object",
    "required": [
        "months"
    ],
    "properties": {
        "months": {
            "type": "array",
            "items": {
                "type": "integer",
                "minimum": 1,
                "maximum": 12
            }
        },
        "from": {
            "id": "schemas/common/date",
            "description": "ISO date YYYY-MM-DD",
            "type": "string",
            "format": "date"
        },
        "to": {
            "id": "schemas/common/date",
            "description": "ISO date YYYY-MM-DD",
            "type": "string",
            "format": "date"
        },
        "weekdays": {
            "type": "array",
            "items": {
                "id": "schemas/calendar/weekDays",
                "javaType": "com.sos.joc.model.calendar.WeekDays",
                "type": "object",
                "required": [
                    "days"
                ],
                "properties": {
                    "from": {
                        "id": "schemas/common/date",
                        "description": "ISO date YYYY-MM-DD",
                        "type": "string",
                        "format": "date"
                    },
                    "to": {
                        "id": "schemas/common/date",
                        "description": "ISO date YYYY-MM-DD",
                        "type": "string",
                        "format": "date"
                    },
                    "days": {
                        "type": "array",
                        "items": {
                            "id": "schemas/calendar/dayOfWeek",
                            "description": "digit from 0-6, 0=Sunday, 1=Monday, ..., 6=Saturday",
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 6
                        }
                    }
                }
            }
        },
        "monthdays": {
            "type": "array",
            "items": {
                "id": "schemas/calendar/monthDays",
                "javaType": "com.sos.joc.model.calendar.MonthDays",
                "type": "object",
                "properties": {
                    "from": {
                        "id": "schemas/common/date",
                        "description": "ISO date YYYY-MM-DD",
                        "type": "string",
                        "format": "date"
                    },
                    "to": {
                        "id": "schemas/common/date",
                        "description": "ISO date YYYY-MM-DD",
                        "type": "string",
                        "format": "date"
                    },
                    "days": {
                        "type": "array",
                        "items": {
                            "id": "schemas/calendar/dayOfWeek",
                            "description": "digit from 1-31",
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 31
                        }
                    },
                    "weeklyDays": {
                        "type": "array",
                        "items": {
                            "javaType": "com.sos.joc.model.calendar.WeeklyDay",
                            "type": "object",
                            "properties": {
                                "day": {
                                    "id": "schemas/calendar/dayOfWeek",
                                    "description": "digit from 0-6, 0=Sunday, 1=Monday, ..., 6=Saturday",
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 6
                                },
                                "weekOfMonth": {
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 5
                                }
                            }
                        }
                    }
                }
            }
        },
        "ultimos": {
            "type": "array",
            "items": {
                "id": "schemas/calendar/monthDays",
                "javaType": "com.sos.joc.model.calendar.MonthDays",
                "type": "object",
                "properties": {
                    "from": {
                        "id": "schemas/common/date",
                        "description": "ISO date YYYY-MM-DD",
                        "type": "string",
                        "format": "date"
                    },
                    "to": {
                        "id": "schemas/common/date",
                        "description": "ISO date YYYY-MM-DD",
                        "type": "string",
                        "format": "date"
                    },
                    "days": {
                        "type": "array",
                        "items": {
                            "id": "schemas/calendar/dayOfWeek",
                            "description": "digit from 1-31",
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 31
                        }
                    },
                    "weeklyDays": {
                        "type": "array",
                        "items": {
                            "javaType": "com.sos.joc.model.calendar.WeeklyDay",
                            "type": "object",
                            "properties": {
                                "day": {
                                    "id": "schemas/calendar/dayOfWeek",
                                    "description": "digit from 0-6, 0=Sunday, 1=Monday, ..., 6=Saturday",
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 6
                                },
                                "weekOfMonth": {
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 5
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}