{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zywave/json-schema/zywave-coverage-type-schema.json",
  "title": "CoverageType",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zywave-coveragetypes-api-openapi.yml#/components/schemas/CoverageType",
  "allOf": [
    {
      "$ref": "#/$defs/CoverageTypeInfo"
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "integer",
          "description": "The unique Zywave identifier for the coverage type.",
          "format": "int32"
        }
      }
    }
  ],
  "$defs": {
    "CoverageTypeInfo": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "description",
        "insuranceCategory"
      ],
      "properties": {
        "description": {
          "type": "string",
          "description": "The description of the coverage type.",
          "maxLength": 50,
          "minLength": 1
        },
        "insuranceCategory": {
          "description": "The category of insurance that this coverage type belongs. Ex. Benefits / Property",
          "oneOf": [
            {
              "$ref": "#/$defs/InsuranceCategoryOption"
            }
          ]
        }
      }
    },
    "InsuranceCategoryOption": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "Benefits",
        "PropertyCasualty"
      ],
      "enum": [
        "Benefits",
        "PropertyCasualty"
      ]
    }
  }
}