{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/zywave/main/json-schema/zywave-carrier-schema.json",
  "title": "Carrier",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zywave-carriers-v2-openapi.json#/components/schemas/Carrier",
  "allOf": [
    {
      "$ref": "#/$defs/CarrierInfo"
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "integer",
          "description": "The unique Zywave identifier for the carrier.",
          "format": "int32"
        }
      }
    }
  ],
  "$defs": {
    "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."
        }
      }
    }
  }
}