{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zywave/json-schema/zywave-cobra-rate-record-schema.json",
  "title": "CobraRateRecord",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zywave-cobra-api-openapi.yml#/components/schemas/CobraRateRecord",
  "allOf": [
    {
      "$ref": "#/$defs/CobraRateRecordInfo"
    },
    {
      "type": "object",
      "description": "A COBRA rate record",
      "additionalProperties": false,
      "required": [
        "id"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "description": "The unique Zywave identifier for the COBRA Rate record",
          "format": "int32",
          "maximum": 2147483647.0,
          "minimum": 1.0
        },
        "tier": {
          "description": "The contribution tier for the rate record.",
          "oneOf": [
            {
              "$ref": "#/$defs/RateTierTypeOption"
            }
          ]
        }
      }
    }
  ],
  "$defs": {
    "CobraRateRecordInfo": {
      "type": "object",
      "description": "COBRA rate record info",
      "additionalProperties": false,
      "properties": {
        "cobraRate": {
          "type": [
            "number",
            "null"
          ],
          "description": "The COBRA rate for the contribution tier.\n            \n**NOTE:** If the `CobraRateStrategy` associated with the policy has `OverrideDefaultRate` = `false`, this value will be calculated to follow the default rule.",
          "format": "decimal",
          "maximum": 99999.99,
          "minimum": 0.0,
          "pattern": "^\\d+\\.?\\d{0,2}$"
        }
      }
    },
    "RateTierTypeOption": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "Employee",
        "EmployeeSpouse",
        "EmployeeChildren",
        "EmployeeFamily",
        "EmployeeChild",
        "EmployeeSpouseChild",
        "EmployeeTwoChildren",
        "EmployeeThreeChildren"
      ],
      "enum": [
        "Employee",
        "EmployeeSpouse",
        "EmployeeChildren",
        "EmployeeFamily",
        "EmployeeChild",
        "EmployeeSpouseChild",
        "EmployeeTwoChildren",
        "EmployeeThreeChildren"
      ]
    }
  }
}