{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/0si-ai/json-schema/0si-ai-company-detail-schema.json",
  "title": "CompanyDetail",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/0si-ai-companies-api-openapi.yml#/components/schemas/CompanyDetail",
  "type": "object",
  "required": [
    "object",
    "data",
    "meta"
  ],
  "properties": {
    "object": {
      "const": "company"
    },
    "data": {
      "$ref": "#/$defs/AssetSnapshot"
    },
    "meta": {
      "type": "object",
      "additionalProperties": true
    }
  },
  "$defs": {
    "AssetSnapshot": {
      "type": "object",
      "properties": {
        "stock_code": {
          "type": "string"
        },
        "company_name": {
          "type": "string"
        },
        "market": {
          "type": "string"
        },
        "sector": {
          "type": "string"
        },
        "listing_status": {
          "type": "string"
        },
        "instrument_key": {
          "type": "string"
        },
        "country_code": {
          "type": "string",
          "enum": [
            "KR",
            "US"
          ]
        },
        "currency": {
          "type": "string"
        },
        "exchange": {
          "type": "string"
        },
        "cik": {
          "type": "string"
        },
        "metrics": {
          "type": "object",
          "additionalProperties": true
        },
        "shares": {
          "type": "object",
          "additionalProperties": true
        },
        "financials": {
          "type": "object",
          "additionalProperties": true
        },
        "quote": {
          "type": "object",
          "additionalProperties": true
        },
        "basis": {
          "type": "object",
          "additionalProperties": true
        },
        "pending_actions": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true
          }
        }
      },
      "additionalProperties": true
    }
  }
}