{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/absence-io/json-schema/absence-io-reason-type-list-response-schema.json",
  "title": "ReasonTypeListResponse",
  "description": "Paginated list response containing reason type records.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/absence-io-reason-types-api-openapi.yml#/components/schemas/ReasonTypeListResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "description": "Array of reason type records.",
      "items": {
        "$ref": "#/$defs/ReasonType"
      }
    },
    "skip": {
      "type": "integer"
    },
    "limit": {
      "type": "integer"
    },
    "count": {
      "type": "integer"
    }
  },
  "$defs": {
    "ReasonType": {
      "title": "ReasonType",
      "description": "An absence reason type (e.g., vacation, sick leave, parental leave).",
      "type": "object",
      "properties": {
        "_id": {
          "type": "string",
          "description": "Unique identifier of the reason type."
        },
        "name": {
          "type": "string",
          "description": "Display name of the absence reason."
        },
        "color": {
          "type": "string",
          "description": "Color code for displaying this absence type in the calendar."
        },
        "requiresApproval": {
          "type": "boolean",
          "description": "Whether absences of this type require manager approval."
        },
        "affectsAllowance": {
          "type": "boolean",
          "description": "Whether absences of this type count against the employee's allowance."
        }
      }
    }
  }
}