{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/panembrivdienu-lv/json-schema/panembrivdienu-lv-entitlement-response-schema.json",
  "title": "EntitlementResponse",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/panembrivdienu-lv-openapi.yml#/components/schemas/EntitlementResponse",
  "type": "object",
  "required": [
    "entitlement_days",
    "unit",
    "is_accrual_estimate",
    "under_18_calendar_month",
    "six_month_threshold_reached_by_year_end",
    "is_under_18",
    "base_used"
  ],
  "properties": {
    "entitlement_days": {
      "type": "number"
    },
    "unit": {
      "type": "string",
      "const": "calendar_days_excluding_holidays"
    },
    "is_accrual_estimate": {
      "type": "boolean",
      "description": "Employment starts on or after January 1 of the requested year, so the figure is accrued."
    },
    "under_18_calendar_month": {
      "type": "boolean",
      "description": "The statutory duration is one calendar month, not the nominal figure."
    },
    "six_month_threshold_reached_by_year_end": {
      "type": "boolean",
      "description": "Six months of continuous work are reached by year end, after which the full annual leave may be requested."
    },
    "is_under_18": {
      "type": "boolean"
    },
    "base_used": {
      "type": "integer"
    }
  }
}