{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nordic-financial-news/json-schema/nordic-financial-news-index-detail-schema.json",
  "title": "IndexDetail",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nordic-financial-news-indices-api-openapi.yml#/components/schemas/IndexDetail",
  "allOf": [
    {
      "$ref": "#/$defs/IndexSummary"
    },
    {
      "type": "object",
      "properties": {
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "Index description"
        },
        "companies_count": {
          "type": "integer",
          "description": "Number of distinct companies in this index (may be less than constituents when a company has multiple share classes)"
        }
      }
    }
  ],
  "$defs": {
    "IndexSummary": {
      "type": "object",
      "required": [
        "id",
        "name",
        "symbol"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique stock index identifier"
        },
        "name": {
          "type": "string",
          "description": "Index display name"
        },
        "symbol": {
          "type": "string",
          "description": "Index symbol"
        },
        "pan_nordic": {
          "type": "boolean",
          "description": "True if the index spans multiple Nordic exchanges (e.g. OMXN40), false if tied to a single exchange (e.g. OMXS30)"
        },
        "exchange": {
          "type": [
            "object",
            "null"
          ],
          "description": "Exchange associated with this index",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "mic_code": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}