{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zywave/json-schema/zywave-paged-result-of-coverage-type-schema.json",
  "title": "PagedResultOfCoverageType",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zywave-coveragetypes-api-openapi.yml#/components/schemas/PagedResultOfCoverageType",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "hasMoreResults": {
      "type": "boolean"
    },
    "pageIndex": {
      "type": "integer",
      "format": "int32"
    },
    "pageSize": {
      "type": "integer",
      "format": "int32"
    },
    "skip": {
      "type": "integer",
      "format": "int32"
    },
    "take": {
      "type": "integer",
      "format": "int32"
    },
    "totalCount": {
      "type": "integer",
      "format": "int32"
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CoverageType"
      }
    }
  },
  "$defs": {
    "CoverageType": {
      "allOf": [
        {
          "$ref": "#/$defs/CoverageTypeInfo"
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "id": {
              "type": "integer",
              "description": "The unique Zywave identifier for the coverage type.",
              "format": "int32"
            }
          }
        }
      ]
    },
    "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"
      ]
    }
  }
}