{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/disputes-online/json-schema/disputes-online-dispute-list-schema.json",
  "title": "DisputeList",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/disputes-online-openapi.json#/components/schemas/DisputeList",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Dispute"
      }
    },
    "total": {
      "type": "integer",
      "description": "Number of disputes matching the filters, across all pages."
    }
  },
  "$defs": {
    "Dispute": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "description": {
          "type": "string",
          "description": "The question and its resolution criteria. The first line is the title."
        },
        "variants": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Variant"
          }
        },
        "status": {
          "type": "string",
          "enum": [
            "new",
            "in_process",
            "hot",
            "very_hot",
            "ready",
            "done",
            "dispute"
          ],
          "description": "`new`: no bets yet. `in_process`, `hot`, `very_hot`: accepting bets, by popularity. `ready`: awaiting result. `done`: settled. `dispute`: the result is being contested."
        },
        "stop_date": {
          "type": "string",
          "format": "date-time",
          "description": "When betting closes."
        },
        "finish_date": {
          "type": "string",
          "format": "date-time",
          "description": "When the result is due."
        },
        "uncertain_date": {
          "type": "boolean",
          "description": "True when the event has no fixed date and the dates are estimates."
        },
        "total_bets": {
          "type": "integer",
          "description": "Number of bets placed."
        },
        "total_amount": {
          "type": "number",
          "description": "Pool size in QOT."
        },
        "category_id": {
          "type": "integer"
        },
        "lang": {
          "type": "string",
          "description": "Language code, or `all`."
        },
        "country": {
          "type": [
            "string",
            "null"
          ],
          "description": "ISO 3166-1 alpha-2."
        },
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "image": {
          "type": [
            "string",
            "null"
          ],
          "description": "Cover image URL."
        },
        "video_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "min_bet": {
          "type": [
            "number",
            "null"
          ],
          "description": "Smallest allowed stake, in QOT."
        },
        "max_bet": {
          "type": [
            "number",
            "null"
          ],
          "description": "Largest allowed stake, in QOT."
        },
        "team_id": {
          "type": [
            "string",
            "null"
          ],
          "description": "Set when the dispute belongs to a team."
        },
        "owner": {
          "type": "string",
          "format": "uuid",
          "description": "User who opened the dispute."
        },
        "is_local": {
          "type": "boolean"
        },
        "is_closed": {
          "type": "boolean"
        },
        "lat": {
          "type": "number"
        },
        "lng": {
          "type": "number"
        },
        "radius": {
          "type": "integer"
        },
        "sport_key": {
          "type": "string"
        },
        "created_at": {
          "type": "integer",
          "description": "Unix seconds."
        },
        "modified_at": {
          "type": "integer",
          "description": "Unix seconds."
        }
      }
    },
    "Variant": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "description": {
          "type": "string",
          "description": "The outcome's text."
        },
        "amount": {
          "type": "number",
          "description": "QOT staked on this outcome."
        },
        "count_of_bets": {
          "type": "integer"
        },
        "coefficient": {
          "type": "number",
          "description": "Payout multiplier if this outcome wins, at the current split of stakes."
        },
        "image": {
          "type": "string"
        },
        "probability": {
          "type": "number",
          "minimum": 0,
          "maximum": 1,
          "description": "This outcome's share of everything staked on the dispute — the crowd's implied probability. 0 when nobody has bet yet."
        }
      }
    }
  }
}