{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/panembrivdienu-lv/json-schema/panembrivdienu-lv-entitlement-request-schema.json",
  "title": "EntitlementRequest",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/panembrivdienu-lv-openapi.yml#/components/schemas/EntitlementRequest",
  "type": "object",
  "required": [
    "employment_start_date",
    "year",
    "fte_percentage",
    "annual_base"
  ],
  "properties": {
    "employment_start_date": {
      "$ref": "#/$defs/Date"
    },
    "birth_date": {
      "$ref": "#/$defs/Date"
    },
    "year": {
      "type": "integer",
      "minimum": 2020,
      "maximum": 2100
    },
    "fte_percentage": {
      "type": "number",
      "minimum": 0.1,
      "maximum": 1,
      "description": "Workload as a fraction of full time. Part-time work does not shorten the leave period."
    },
    "annual_base": {
      "type": "integer",
      "minimum": 28,
      "maximum": 60,
      "description": "Annual leave in calendar days; the statutory minimum is 28."
    }
  },
  "$defs": {
    "Date": {
      "type": "string",
      "format": "date"
    }
  }
}