{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/runn/json-schema/runn-time-off-schema.json",
  "title": "TimeOff",
  "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/TimeOff",
  "type": "object",
  "properties": {
    "id": {
      "description": "The unique identifier for the assignment.",
      "type": "integer"
    },
    "personId": {
      "description": "The identifier referencing the person associated with the time-off.",
      "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": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp of when the object was created."
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp of when the object was last updated."
    },
    "minutesPerDay": {
      "type": [
        "integer",
        "null"
      ]
    }
  },
  "required": [
    "id",
    "personId",
    "startDate",
    "endDate",
    "note",
    "createdAt",
    "updatedAt",
    "minutesPerDay"
  ]
}