{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/RecurrenceDTO",
"title": "RecurrenceDTO",
"type": "object",
"properties": {
"interval": {
"type": "integer",
"format": "int32",
"minimum": 1
},
"occurrenceInTheMonth": {
"type": "string",
"enum": [
"FIRST",
"SECOND",
"THIRD",
"FOURTH",
"LAST"
]
},
"daysOfWeek": {
"type": "array",
"items": {
"type": "string",
"enum": [
"SUN",
"MON",
"TUE",
"WED",
"THU",
"FRI",
"SAT"
]
},
"maxItems": 7,
"minItems": 0
},
"specificDayOfMonth": {
"type": "integer",
"format": "int32",
"maximum": 31,
"minimum": 1
},
"specificMonth": {
"type": "string",
"enum": [
"JAN",
"FEB",
"MAR",
"APR",
"MAY",
"JUN",
"JUL",
"AUG",
"SEP",
"OCT",
"NOV",
"DEC"
]
},
"endDate": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
}
},
"required": [
"interval"
]
}