{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/opencapital-sh/json-schema/opencapital-sh-company-list-schema.json",
  "title": "CompanyList",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/opencapital-sh-openapi.json#/components/schemas/CompanyList",
  "type": "object",
  "properties": {
    "companies": {
      "type": "array",
      "items": {
        "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
      }
    },
    "page": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "pageCount": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "totalCount": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "companies",
    "page",
    "pageCount",
    "totalCount"
  ],
  "additionalProperties": false
}