{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sportstatsapi/json-schema/sportstatsapi-dto-wiki-tournament-response-schema.json",
  "title": "dto.WikiTournamentResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sportstatsapi-darts-api-openapi.yml#/components/schemas/dto.WikiTournamentResponse",
  "properties": {
    "attribution": {
      "type": "string"
    },
    "centuries": {
      "description": "snooker: [{player_id, name, stage, breaks}]",
      "items": {
        "type": "integer"
      },
      "type": "array"
    },
    "currency": {
      "type": "string"
    },
    "end_date": {
      "type": "string"
    },
    "final_score": {
      "type": "string"
    },
    "id": {
      "type": "integer"
    },
    "kind": {
      "type": "string"
    },
    "matches": {
      "items": {
        "$ref": "#/$defs/dto.WikiMatchResponse"
      },
      "type": "array"
    },
    "name": {
      "type": "string"
    },
    "prize_fund": {
      "type": "integer"
    },
    "runner_up": {
      "$ref": "#/$defs/dto.WikiPlayerRef"
    },
    "season": {
      "description": "snooker 2026-27, darts 2026",
      "type": "string"
    },
    "start_date": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "updated_at": {
      "type": "string"
    },
    "venue": {
      "type": "string"
    },
    "wikipedia_article": {
      "type": "string"
    },
    "winner": {
      "$ref": "#/$defs/dto.WikiPlayerRef"
    }
  },
  "type": "object",
  "$defs": {
    "dto.WikiMatchPlayer": {
      "properties": {
        "average": {
          "type": "number"
        },
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "score": {
          "type": "integer"
        },
        "seed": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "dto.WikiMatchResponse": {
      "properties": {
        "best_of": {
          "type": "integer"
        },
        "date": {
          "type": "string"
        },
        "id": {
          "type": "integer"
        },
        "player1": {
          "$ref": "#/$defs/dto.WikiMatchPlayer"
        },
        "player2": {
          "$ref": "#/$defs/dto.WikiMatchPlayer"
        },
        "round": {
          "type": "string"
        },
        "stage": {
          "description": "main, qualifying",
          "type": "string"
        },
        "tournament": {
          "$ref": "#/$defs/dto.WikiTournamentRef"
        },
        "unit": {
          "type": "string"
        },
        "walkover": {
          "type": "boolean"
        },
        "winner": {
          "type": "integer"
        }
      },
      "type": "object"
    },
    "dto.WikiPlayerRef": {
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "dto.WikiTournamentRef": {
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "season": {
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}