{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/opencapital-sh/json-schema/opencapital-sh-company-lookup-schema.json",
  "title": "CompanyLookup",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/opencapital-sh-openapi.json#/components/schemas/CompanyLookup",
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "requestedTicker": {
            "type": "string"
          },
          "company": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "ticker": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "iconUrl": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "marketCap": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Indexed market capitalization in USD used for display and ranking; may lag the market-cap resource."
              },
              "marketCapChange1yPct": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Indexed approximate one-year market-cap change as a fraction (0.1 means 10%); may lag the market-cap resource."
              },
              "preIpo": {
                "type": "boolean"
              }
            },
            "required": [
              "id",
              "ticker",
              "name",
              "iconUrl",
              "marketCap",
              "marketCapChange1yPct",
              "preIpo"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "requestedTicker",
          "company"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "results"
  ],
  "additionalProperties": false
}