{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clerkfield-com/json-schema/clerkfield-com-business-record-schema.json",
  "title": "BusinessRecord",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clerkfield-com-openapi.json#/components/schemas/BusinessRecord",
  "type": "object",
  "properties": {
    "state": {
      "type": "string"
    },
    "entityId": {
      "type": "string"
    },
    "legalName": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "inactive",
        "unknown"
      ]
    },
    "statusDetail": {
      "type": "string"
    },
    "entityType": {
      "type": "string"
    },
    "formedOn": {
      "type": "string"
    },
    "monthsInBusiness": {
      "type": "integer"
    },
    "principalAddress": {
      "type": "string"
    },
    "serviceAddress": {
      "type": "string"
    },
    "registeredAgent": {
      "type": "string"
    },
    "officers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Person"
      }
    },
    "officersAvailable": {
      "type": "boolean"
    },
    "details": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "source": {
      "$ref": "#/$defs/Source"
    },
    "score": {
      "type": "number"
    },
    "mailingAddress": {
      "type": "string"
    },
    "standing": {
      "type": "string",
      "description": "The state's standing wording, where it reports standing apart from status."
    },
    "otherNames": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          }
        }
      }
    },
    "keyDates": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        }
      }
    },
    "filings": {
      "type": "array",
      "description": "The state's filing history for the company, newest first.",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "date": {
            "type": "string"
          },
          "number": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          }
        }
      }
    },
    "notPublished": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "What this state leaves out of its free record. An empty section listed here means 'not published', not 'none'."
    },
    "full": {
      "type": "boolean",
      "description": "True when this is the full state record."
    }
  },
  "$defs": {
    "Person": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "address": {
          "type": "string"
        }
      }
    },
    "Source": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "asOf": {
          "type": "string",
          "description": "Date of the data, YYYY-MM-DD."
        }
      }
    }
  }
}