{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "RecurrencePattern",
  "type": "object",
  "description": "Describes the frequency by which a recurring event repeats.",
  "properties": {
    "type": {
      "type": "string",
      "description": "The recurrence pattern type."
    },
    "interval": {
      "type": "integer",
      "description": "The number of units between occurrences, where units can be in days, weeks, months, or years."
    },
    "daysOfWeek": {
      "type": "array",
      "description": "A collection of the days of the week on which the event occurs."
    },
    "dayOfMonth": {
      "type": "integer",
      "description": "The day of the month on which the event occurs."
    },
    "month": {
      "type": "integer",
      "description": "The month in which the event occurs (1-12)."
    },
    "firstDayOfWeek": {
      "type": "string",
      "description": "The first day of the week."
    },
    "index": {
      "type": "string",
      "description": "The week index for relative monthly and yearly patterns."
    }
  }
}