{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/zywave/main/json-schema/zywave-paged-result-of-carrier-schema.json",
  "title": "PagedResultOfCarrier",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zywave-carriers-v2-openapi.json#/components/schemas/PagedResultOfCarrier",
  "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/Carrier"
      }
    }
  },
  "$defs": {
    "Carrier": {
      "allOf": [
        {
          "$ref": "#/$defs/CarrierInfo"
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "id": {
              "type": "integer",
              "description": "The unique Zywave identifier for the carrier.",
              "format": "int32"
            }
          }
        }
      ]
    },
    "CarrierInfo": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "name"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the carrier.",
          "maxLength": 100,
          "minLength": 1
        },
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The display name of the carrier.",
          "maxLength": 100
        },
        "groupNumber": {
          "type": [
            "integer",
            "null"
          ],
          "description": "NAIC's (National Association of Insurance Commissioners) Group Number. The unique NAIC identifier for the carrier.",
          "format": "int32"
        },
        "isActive": {
          "type": "boolean",
          "description": "Indicates whether the carrier is active."
        }
      }
    }
  }
}