{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zywave/json-schema/zywave-eligibility-info-schema.json",
  "title": "EligibilityInfo",
  "description": "Eligibility information for a policy.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zywave-eligibilities-api-openapi.yml#/components/schemas/EligibilityInfo",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "employeeGroup": {
      "description": "The employee group or groups to which this eligibility information applies.\n\nThis value can be a bit mask of EmployeeGroupOptions values. ",
      "oneOf": [
        {
          "$ref": "#/$defs/EmployeeGroupOptions"
        }
      ]
    },
    "hours": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The minimum weekly hours required for eligibility.",
      "format": "int32",
      "maximum": 40.0,
      "minimum": 0.0
    },
    "waitingPeriod": {
      "description": "The waiting period between hire date and first coverage.",
      "oneOf": [
        {
          "$ref": "#/$defs/WaitingPeriodOption"
        }
      ]
    },
    "waitingPeriodAmount": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The waiting period amount (days/months) used as needed with the WaitingPeriod.",
      "format": "int32",
      "maximum": 365.0,
      "minimum": 0.0
    },
    "domesticPartnerCoverage": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Indicates if domestic partners are covered by the policy."
    },
    "coverageTermination": {
      "description": "The coverage termination relative to employment termination.",
      "oneOf": [
        {
          "$ref": "#/$defs/CoverageTerminationOption"
        }
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "The description of the eligibility coverage information.",
      "maxLength": 500
    },
    "spouseCoverage": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Indicates if spouse is covered by the policy."
    },
    "dependentCoverage": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Indicates if dependent or child is covered by the policy."
    },
    "otherCoverage": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Indicates if there is anything other covered by the policy."
    },
    "otherCoverageDescription": {
      "type": [
        "string",
        "null"
      ],
      "description": "The description of the other coverage information.",
      "maxLength": 100
    }
  },
  "$defs": {
    "CoverageTerminationOption": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "Immediate",
        "LastDayOfMonth",
        "ThirtyDaysAfter",
        "FifteenthOfMonth"
      ],
      "enum": [
        "Immediate",
        "LastDayOfMonth",
        "ThirtyDaysAfter",
        "FifteenthOfMonth"
      ]
    },
    "EmployeeGroupOptions": {
      "type": "string",
      "description": "",
      "x-enumFlags": true,
      "x-enumNames": [
        "None",
        "Salaried",
        "NonSalaried",
        "Management",
        "Union",
        "FullTime",
        "All"
      ],
      "enum": [
        "None",
        "Salaried",
        "NonSalaried",
        "Management",
        "Union",
        "FullTime",
        "All"
      ]
    },
    "WaitingPeriodOption": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "DateOfHire",
        "NDaysAfterDateOfHire",
        "NMonthsAfterDateOfHire",
        "FirstOfMonthAfterDateOfHire",
        "FirstOfMonthAfterNDaysAfterDateOfHire",
        "FirstOfMonthAfterNMonthsAfterDateOfHire",
        "FifteenthOfMonthAfterNDaysAfterDateOfHire",
        "FifteenthOfMonthAfterNMonthsAfterDateOfHire"
      ],
      "enum": [
        "DateOfHire",
        "NDaysAfterDateOfHire",
        "NMonthsAfterDateOfHire",
        "FirstOfMonthAfterDateOfHire",
        "FirstOfMonthAfterNDaysAfterDateOfHire",
        "FirstOfMonthAfterNMonthsAfterDateOfHire",
        "FifteenthOfMonthAfterNDaysAfterDateOfHire",
        "FifteenthOfMonthAfterNMonthsAfterDateOfHire"
      ]
    }
  }
}