{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cuebiq/json-schema/cuebiq-performance-ranking-response-schema.json",
  "title": "PerformanceRankingResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cuebiq-kpis-v2-shared-campaigns-api-openapi.yml#/components/schemas/PerformanceRankingResponse",
  "required": [
    "rankings"
  ],
  "type": "object",
  "properties": {
    "rankings": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": {
          "$ref": "#/$defs/RankedKpi"
        }
      }
    }
  },
  "$defs": {
    "RankedKpi": {
      "required": [
        "id",
        "name"
      ],
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/UUID"
        },
        "name": {
          "type": "string"
        },
        "rank": {
          "format": "int32",
          "type": [
            "integer",
            "null"
          ]
        },
        "value": {
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        }
      }
    },
    "UUID": {
      "format": "uuid",
      "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}",
      "type": "string"
    }
  }
}