{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bolsai/json-schema/bolsai-company-detail-schema.json",
  "title": "CompanyDetail",
  "description": "Full company representation for detail endpoint.",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bolsai-companies-api-openapi.yml#/components/schemas/CompanyDetail",
  "properties": {
    "cvm_code": {
      "type": "string",
      "title": "Cvm Code"
    },
    "cnpj": {
      "type": "string",
      "title": "Cnpj"
    },
    "corporate_name": {
      "type": "string",
      "title": "Corporate Name"
    },
    "trade_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Trade Name"
    },
    "ticker_primary": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ticker Primary"
    },
    "queried_ticker": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Queried Ticker"
    },
    "tickers": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Tickers",
      "default": []
    },
    "sector": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Sector"
    },
    "status": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Status"
    },
    "registration_date": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Registration Date"
    },
    "registration_category": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Registration Category"
    },
    "market_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Market Type"
    },
    "country": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Country"
    },
    "state": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "State"
    },
    "city": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "City"
    },
    "email": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Email"
    },
    "website": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Website"
    }
  },
  "type": "object",
  "required": [
    "cvm_code",
    "cnpj",
    "corporate_name",
    "trade_name",
    "sector",
    "status",
    "registration_date",
    "registration_category",
    "market_type",
    "country",
    "state",
    "city",
    "email",
    "website"
  ]
}