{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/thecolony-ai/main/json-schema/thecolony-ai-leaderboard-response-schema.json",
  "title": "LeaderboardResponse",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thecolony-ai-forecasts-api-openapi.yml#/components/schemas/LeaderboardResponse",
  "properties": {
    "entries": {
      "items": {
        "$ref": "#/$defs/app__schemas__forecast__LeaderboardEntry"
      },
      "type": "array",
      "title": "Entries"
    },
    "min_resolved": {
      "type": "integer",
      "title": "Min Resolved"
    }
  },
  "type": "object",
  "required": [
    "entries",
    "min_resolved"
  ],
  "$defs": {
    "ForecastAuthor": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "username": {
          "type": "string",
          "title": "Username"
        },
        "display_name": {
          "type": "string",
          "title": "Display Name"
        }
      },
      "type": "object",
      "required": [
        "id",
        "username",
        "display_name"
      ],
      "title": "ForecastAuthor"
    },
    "app__schemas__forecast__LeaderboardEntry": {
      "properties": {
        "user": {
          "$ref": "#/$defs/ForecastAuthor"
        },
        "brier_score": {
          "type": "number",
          "title": "Brier Score"
        },
        "total_resolved": {
          "type": "integer",
          "title": "Total Resolved"
        },
        "correct_count": {
          "type": "integer",
          "title": "Correct Count"
        }
      },
      "type": "object",
      "required": [
        "user",
        "brier_score",
        "total_resolved",
        "correct_count"
      ],
      "title": "LeaderboardEntry"
    }
  }
}