{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/remote-com/json-schema/remote-com-leave-policy-envelope-schema.json",
  "title": "LeavePolicyEnvelope",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/remote-com-leave-policies-api-openapi.yml#/components/schemas/LeavePolicyEnvelope",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "leave_policy": {
          "$ref": "#/$defs/LeavePolicy"
        }
      }
    }
  },
  "$defs": {
    "LeavePolicy": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "country_code": {
          "type": "string"
        },
        "leave_type": {
          "type": "string"
        },
        "accrual_method": {
          "type": "string",
          "enum": [
            "annual",
            "monthly",
            "per_period",
            "statutory"
          ]
        },
        "annual_allowance": {
          "type": "number"
        },
        "unit": {
          "type": "string",
          "enum": [
            "days",
            "hours"
          ]
        }
      }
    }
  }
}