{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/zywave/main/json-schema/zywave-commercial-summary-schema.json",
  "title": "CommercialSummary",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zywave-lead-insights-v3-openapi.json#/components/schemas/CommercialSummary",
  "type": "object",
  "properties": {
    "id": {
      "$ref": "#/$defs/id"
    },
    "broker": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "normalizedName": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "state": {
          "type": "string"
        }
      }
    },
    "policies": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "carrier": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "normalizedName": {
                "type": "string"
              }
            }
          },
          "expirationDate": {
            "type": "string",
            "format": "date"
          },
          "governingCode": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "description": {
                "type": "array",
                "items": {}
              }
            }
          }
        }
      }
    },
    "experienceMod": {
      "type": "object",
      "properties": {
        "exMod": {
          "type": "number",
          "format": "float"
        }
      }
    },
    "leadPeo": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "normalizedName": {
          "type": "string"
        }
      }
    },
    "dotSummary": {
      "type": "object",
      "properties": {
        "accidents": {
          "type": "integer"
        },
        "cargo": {
          "type": "string"
        },
        "classifications": {
          "type": "string"
        },
        "drivers": {
          "type": "integer"
        },
        "inspections": {
          "type": "integer"
        },
        "lastFatality": {
          "type": "string",
          "format": "date"
        },
        "lastIncident": {
          "type": "string",
          "format": "date"
        },
        "mileage": {
          "type": "integer"
        },
        "numbers": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        },
        "oosPercent": {
          "type": "integer"
        },
        "operation": {
          "type": "string"
        },
        "vehicles": {
          "type": "integer"
        },
        "violations": {
          "type": "integer"
        }
      }
    },
    "oshaSummary": {
      "type": "object",
      "properties": {
        "fiveYearAccident": {
          "type": "integer"
        },
        "fiveYearInspections": {
          "type": "integer"
        },
        "fiveYearViolations": {
          "type": "integer"
        },
        "lastAccidentDate": {
          "type": "string",
          "format": "date"
        },
        "lastInspectionDate": {
          "type": "string",
          "format": "date"
        },
        "lastViolation": {
          "type": "string",
          "format": "date"
        },
        "lastFatalityDate": {
          "type": "string",
          "format": "date"
        }
      }
    },
    "whdSummary": {
      "type": "object",
      "properties": {
        "actions": {
          "type": "integer"
        },
        "lastIncident": {
          "type": "string",
          "format": "date"
        },
        "lastPenalty": {
          "type": "string",
          "format": "date"
        }
      }
    }
  },
  "$defs": {
    "id": {
      "description": "The unique identifier of a company. If the response id differs from the requested one, it indicates that the requested company has been acquired, and the data of the parent company is returned instead.",
      "type": "string"
    }
  }
}