{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/absence-io/json-schema/absence-io-timespan-list-response-schema.json",
  "title": "TimespanListResponse",
  "description": "Paginated list response containing timespan records.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/absence-io-timespans-api-openapi.yml#/components/schemas/TimespanListResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "description": "Array of timespan records.",
      "items": {
        "$ref": "#/$defs/Timespan"
      }
    },
    "skip": {
      "type": "integer"
    },
    "limit": {
      "type": "integer"
    },
    "count": {
      "type": "integer"
    }
  },
  "$defs": {
    "Timespan": {
      "title": "Timespan",
      "description": "A working time configuration defining work hours and schedule.",
      "type": "object",
      "properties": {
        "_id": {
          "type": "string",
          "description": "Unique identifier of the timespan."
        },
        "name": {
          "type": "string",
          "description": "Name of the working time configuration."
        },
        "hoursPerDay": {
          "type": "number",
          "description": "Number of working hours per day."
        },
        "daysPerWeek": {
          "type": "integer",
          "description": "Number of working days per week."
        }
      }
    }
  }
}