{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-partner-absence-reasons-response-schema.json",
  "title": "PartnerAbsenceReasonsResponse",
  "description": "A json wrapper for a list of AbsenceReason json objects",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telenor-sverige-partner-user-api-api-openapi.yml#/components/schemas/PartnerAbsenceReasonsResponse",
  "type": "object",
  "properties": {
    "absenceReasonBeans": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AbsenceReason"
      }
    }
  },
  "$defs": {
    "AbsenceReason": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32",
          "description": "The id of this absence reason"
        },
        "description": {
          "type": "string",
          "description": "A description of this absence reason"
        },
        "allowUnlimited": {
          "type": "boolean",
          "description": "Denotes if absences with this absence reason may have infinite duration.<ul><li><b>False</b>: Unlimited absences should not be used.</li><li><b>True</b>: Unlimited absences can be used.</li></ul>"
        },
        "defaultDuration": {
          "type": "integer",
          "format": "int32",
          "description": "Specifies the default duration for this absence reason. Should only be 4 digits. The format is HHMM.<br/>Examples:<br/>30 -> 30 minutes or 00:30<br/>100 -> 1 hour or 01:00"
        },
        "defaultDurationRelative": {
          "type": "boolean",
          "description": "Defines if the default_duration is releative or absolute.<br/>0 = absolute (meaning a specific time of day)<br/>1 = relative (meaning a duration)"
        }
      }
    }
  }
}