{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tickerfacts-com/json-schema/tickerfacts-com-company-search-schema.json",
  "title": "CompanySearch",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tickerfacts-com-openapi.json#/components/schemas/CompanySearch",
  "properties": {
    "count": {
      "minimum": 0,
      "type": "integer"
    },
    "note": {
      "type": "string"
    },
    "query": {
      "type": "string"
    },
    "results": {
      "items": {
        "properties": {
          "cik": {
            "type": "integer"
          },
          "exchange": {
            "type": [
              "string",
              "null"
            ]
          },
          "industry": {
            "type": [
              "string",
              "null"
            ]
          },
          "latest_period_end": {
            "type": [
              "string",
              "null"
            ]
          },
          "listing_status": {
            "enum": [
              "current",
              "former"
            ]
          },
          "matched": {
            "enum": [
              "ticker",
              "name",
              "similar"
            ]
          },
          "name": {
            "type": "string"
          },
          "sector": {
            "type": [
              "string",
              "null"
            ]
          },
          "ticker": {
            "type": "string"
          }
        },
        "required": [
          "ticker",
          "name",
          "cik",
          "listing_status",
          "matched"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "query",
    "count",
    "results"
  ],
  "type": "object"
}