{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/zywave/main/json-schema/zywave-paged-result-of-account-contact-driver-schema.json",
  "title": "PagedResultOfAccountContactDriver",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zywave-accounts-v3-openapi.json#/components/schemas/PagedResultOfAccountContactDriver",
  "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/AccountContactDriver"
      }
    }
  },
  "$defs": {
    "AccountContactDriver": {
      "allOf": [
        {
          "$ref": "#/$defs/AccountContactDriverInfo"
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "accountContactId": {
              "type": "integer",
              "format": "int32"
            },
            "createdDateTimeOffset": {
              "type": "string",
              "format": "date-time"
            },
            "updatedDateTimeOffset": {
              "type": [
                "string",
                "null"
              ],
              "format": "date-time"
            }
          }
        }
      ]
    },
    "AccountContactDriverInfo": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "driverLicenseNumber": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 25
        },
        "driverLicenseState": {
          "type": [
            "string",
            "null"
          ]
        },
        "dateLicensed": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "licenseExpirationDate": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "licenseStatus": {
          "nullable": true,
          "oneOf": [
            {
              "$ref": "#/$defs/LicenseStatus"
            }
          ]
        }
      }
    },
    "LicenseStatus": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "Valid",
        "Unlicensed",
        "Permit",
        "Suspended"
      ],
      "enum": [
        "Valid",
        "Unlicensed",
        "Permit",
        "Suspended"
      ]
    }
  }
}