{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/runn/json-schema/runn-time-off-leave-input-schema.json",
  "title": "TimeOffLeaveInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/runn-time-offs-api-openapi.yml#/components/schemas/TimeOffLeaveInput",
  "type": "object",
  "properties": {
    "personId": {
      "description": "The unique identifier for the person.",
      "type": "integer"
    },
    "startDate": {
      "type": "string",
      "format": "date",
      "description": "The start date of the time-off. Format: YYYY-MM-DD"
    },
    "endDate": {
      "type": "string",
      "format": "date",
      "description": "The end date of the time-off. Format: YYYY-MM-DD"
    },
    "note": {
      "description": "A note or comment related to the time-off, if any.",
      "type": "string"
    },
    "minutesPerDay": {
      "description": "The minutes per day taken as time off. Omit this property if time-off is for full day(s) as per person's contract.",
      "minimum": 15,
      "type": [
        "integer",
        "null"
      ]
    }
  },
  "required": [
    "personId",
    "startDate",
    "endDate"
  ]
}