{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/PostScheduleEventObject",
  "title": "PostScheduleEventObject",
  "type": "object",
  "required": [
    "name",
    "startDate",
    "endDate"
  ],
  "properties": {
    "name": {
      "type": "string",
      "example": "MondaySchedule",
      "description": "Name for the event."
    },
    "startDate": {
      "type": "string",
      "example": "2021-11-01",
      "description": "Start Date of Event."
    },
    "endDate": {
      "type": "string",
      "example": "2021-11-30",
      "description": "End Date of Event."
    },
    "startTime": {
      "type": "string",
      "example": "12:20",
      "description": "Start time of event. Mandatory if the event is not all day."
    },
    "endTime": {
      "type": "string",
      "example": "14:20",
      "description": "End time of event. Mandatory if the event is not all day."
    },
    "allDayEnabled": {
      "type": "boolean",
      "description": "An indication of whether given event is an all-day event or not. Mandatory if the `startTime` and `endTime` are not defined."
    },
    "recurrence": {
      "$ref": "#/components/schemas/RecurrenceObject",
      "description": "Recurrence definition."
    }
  }
}