{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/contractorroster-com/json-schema/contractorroster-com-contractors-response-schema.json",
  "title": "ContractorsResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/contractorroster-com-openapi.yml#/components/schemas/ContractorsResponse",
  "type": "object",
  "properties": {
    "records": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ContractorRecord"
      }
    },
    "total": {
      "type": "integer"
    },
    "records_delivered": {
      "type": "integer"
    },
    "cost_cents": {
      "type": "integer"
    },
    "balance_cents_after": {
      "type": "integer"
    },
    "state": {
      "type": "string"
    },
    "trade": {
      "type": "string"
    }
  },
  "$defs": {
    "ContractorRecord": {
      "type": "object",
      "properties": {
        "entityname": {
          "type": [
            "string",
            "null"
          ]
        },
        "firstname": {
          "type": [
            "string",
            "null"
          ]
        },
        "lastname": {
          "type": [
            "string",
            "null"
          ]
        },
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "state": {
          "type": "string"
        },
        "mailzipcode": {
          "type": [
            "string",
            "null"
          ]
        },
        "licensetype": {
          "type": [
            "string",
            "null"
          ]
        },
        "licensenumber": {
          "type": [
            "string",
            "null"
          ]
        },
        "licensefirstissuedate": {
          "type": [
            "string",
            "null"
          ]
        },
        "licenseexpirationdate": {
          "type": [
            "string",
            "null"
          ]
        },
        "licensestatusdescription": {
          "type": [
            "string",
            "null"
          ]
        },
        "linktoverifylicense": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "url": {
              "type": "string"
            }
          }
        },
        "phone": {
          "type": [
            "string",
            "null"
          ]
        },
        "fullAddress": {
          "type": [
            "string",
            "null"
          ]
        },
        "website": {
          "type": [
            "string",
            "null"
          ]
        },
        "email": {
          "type": [
            "string",
            "null"
          ]
        },
        "googleRating": {
          "type": [
            "number",
            "null"
          ]
        },
        "googleReviewCount": {
          "type": [
            "integer",
            "null"
          ]
        }
      }
    }
  }
}