{
  "openapi": "3.0.0",
  "info": {
    "title": "FairGame public tournament API",
    "description": "Read-only, unauthenticated access to published tournaments: organisations, tournaments, the full schedule and standings snapshot, match detail, announcements and the live match clock. Every response is JSON; list and snapshot responses carry an ETag and answer 304 to a matching If-None-Match.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://public-api.fairgame.is",
      "description": "Production"
    },
    {
      "url": "https://public-api.dev.fairgame.is",
      "description": "Development"
    }
  ],
  "paths": {
    "/public/tournaments": {
      "get": {
        "operationId": "listPublicTournamentDiscovery",
        "summary": "List public tournaments across all tenants.",
        "tags": [
          "Public"
        ],
        "x-fairgame-auth": "public",
        "responses": {
          "200": {
            "description": "List of public tournaments across all tenants.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicTournamentDiscoveryResponse"
                }
              }
            }
          },
          "304": {
            "description": "Response is unchanged for the supplied ETag."
          }
        }
      }
    },
    "/public/tenants": {
      "get": {
        "operationId": "listPublicTenants",
        "summary": "List all tenants (public).",
        "tags": [
          "Public"
        ],
        "x-fairgame-auth": "public",
        "responses": {
          "200": {
            "description": "List of all tenants.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicTenantListResponse"
                }
              }
            }
          },
          "304": {
            "description": "Response is unchanged for the supplied ETag."
          }
        }
      }
    },
    "/public/tenants/{tenantSlug}/tournaments": {
      "get": {
        "operationId": "listPublicTournaments",
        "summary": "List published tournaments for a tenant (public).",
        "tags": [
          "Public"
        ],
        "x-fairgame-auth": "public",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "tenantSlug",
            "in": "path",
            "description": "The tenant's public slug."
          }
        ],
        "responses": {
          "200": {
            "description": "List of tournaments for the given tenant.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicTournamentListResponse"
                }
              }
            }
          },
          "304": {
            "description": "Response is unchanged for the supplied ETag."
          },
          "404": {
            "description": "Tenant not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/public/tenants/{tenantSlug}/tournaments/{tournamentSlug}/summary": {
      "get": {
        "operationId": "getPublicTournamentSummary",
        "summary": "Get lean tournament summary (public).",
        "tags": [
          "Public"
        ],
        "x-fairgame-auth": "public",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "tenantSlug",
            "in": "path",
            "description": "The tenant's public slug."
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "tournamentSlug",
            "in": "path",
            "description": "The tournament's public slug."
          }
        ],
        "responses": {
          "200": {
            "description": "Lean tournament header + section counts for first paint.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicTournamentSummaryResponse"
                }
              }
            }
          },
          "304": {
            "description": "Response is unchanged for the supplied ETag."
          },
          "404": {
            "description": "Tenant or tournament not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/public/tenants/{tenantSlug}/tournaments/{tournamentSlug}": {
      "get": {
        "operationId": "getPublicTournamentDetail",
        "summary": "Get tournament detail snapshot (public).",
        "tags": [
          "Public"
        ],
        "x-fairgame-auth": "public",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "tenantSlug",
            "in": "path",
            "description": "The tenant's public slug."
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "tournamentSlug",
            "in": "path",
            "description": "The tournament's public slug."
          }
        ],
        "responses": {
          "200": {
            "description": "Full tournament snapshot for public display.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicTournamentDetailResponse"
                }
              }
            }
          },
          "304": {
            "description": "Response is unchanged for the supplied ETag."
          },
          "404": {
            "description": "Tenant or tournament not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/public/v2/tenants/{tenantSlug}/tournaments/{tournamentSlug}": {
      "get": {
        "operationId": "getPublicTournamentDetailV2",
        "summary": "Get tournament detail snapshot (public). Includes unresolved fixtures.",
        "tags": [
          "Public"
        ],
        "x-fairgame-auth": "public",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "tenantSlug",
            "in": "path",
            "description": "The tenant's public slug."
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "tournamentSlug",
            "in": "path",
            "description": "The tournament's public slug."
          }
        ],
        "responses": {
          "200": {
            "description": "Full tournament snapshot for public display.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicTournamentDetailResponse"
                }
              }
            }
          },
          "304": {
            "description": "Response is unchanged for the supplied ETag."
          },
          "404": {
            "description": "Tenant or tournament not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/public/tenants/{tenantSlug}/tournaments/{tournamentSlug}/matches/{matchId}": {
      "get": {
        "operationId": "getPublicMatchDetail",
        "summary": "Get match detail with resolved names (public).",
        "tags": [
          "Public"
        ],
        "x-fairgame-auth": "public",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "tenantSlug",
            "in": "path",
            "description": "The tenant's public slug."
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "tournamentSlug",
            "in": "path",
            "description": "The tournament's public slug."
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "required": true,
            "name": "matchId",
            "in": "path",
            "description": "The match id."
          }
        ],
        "responses": {
          "200": {
            "description": "Single match detail with resolved names.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicMatchDetailResponse"
                }
              }
            }
          },
          "304": {
            "description": "Response is unchanged for the supplied ETag."
          },
          "404": {
            "description": "Tenant, tournament, or match not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/public/v2/tenants/{tenantSlug}/tournaments/{tournamentSlug}/matches/{matchId}": {
      "get": {
        "operationId": "getPublicMatchDetailV2",
        "summary": "Get match detail with resolved names (public). Includes unresolved fixtures.",
        "tags": [
          "Public"
        ],
        "x-fairgame-auth": "public",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "tenantSlug",
            "in": "path",
            "description": "The tenant's public slug."
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "tournamentSlug",
            "in": "path",
            "description": "The tournament's public slug."
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "required": true,
            "name": "matchId",
            "in": "path",
            "description": "The match id."
          }
        ],
        "responses": {
          "200": {
            "description": "Single match detail with resolved names.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicMatchDetailResponse"
                }
              }
            }
          },
          "304": {
            "description": "Response is unchanged for the supplied ETag."
          },
          "404": {
            "description": "Tenant, tournament, or match not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/public/tenants/{tenantSlug}/tournaments/{tournamentSlug}/announcements": {
      "get": {
        "operationId": "listPublicTournamentAnnouncements",
        "summary": "List a tournament's announcements (public).",
        "tags": [
          "Public"
        ],
        "x-fairgame-auth": "public",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "tenantSlug",
            "in": "path",
            "description": "The tenant's public slug."
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "tournamentSlug",
            "in": "path",
            "description": "The tournament's public slug."
          }
        ],
        "responses": {
          "200": {
            "description": "Organizer announcements for the tournament, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "announcements": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "subject": {
                            "type": "string"
                          },
                          "body": {
                            "type": "string"
                          },
                          "sentAt": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "subject",
                          "body",
                          "sentAt"
                        ]
                      }
                    }
                  },
                  "required": [
                    "announcements"
                  ]
                }
              }
            }
          },
          "304": {
            "description": "Response is unchanged for the supplied ETag."
          },
          "404": {
            "description": "Tenant or tournament not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/public/tenants/{tenantSlug}/tournaments/{tournamentSlug}/clock": {
      "get": {
        "operationId": "getPublicTournamentClock",
        "summary": "Read a tournament's public match clock.",
        "tags": [
          "Public"
        ],
        "x-fairgame-auth": "public",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "tenantSlug",
            "in": "path",
            "description": "The tenant's public slug."
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "tournamentSlug",
            "in": "path",
            "description": "The tournament's public slug."
          }
        ],
        "responses": {
          "200": {
            "description": "The tournament's shared match clock and its per-court board.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicTournamentClockResponse"
                }
              }
            }
          },
          "404": {
            "description": "Tenant or tournament not found, or the tournament is not public yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicTournamentClockErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/public/tenants/{tenantSlug}/tournaments/{tournamentSlug}/mat-board": {
      "get": {
        "operationId": "getPublicTournamentMatBoard",
        "summary": "Read what each pitch plays now, next and on deck.",
        "description": "The public mat board for the clock's day, from the published schedule: each pitch's matches in running order (slot time, then bracket play order), with now the match in progress or the earliest unplayed one whose slot has started at the server's time, and next and on deck the two still to play after it. Empty until the schedule is published; uncached, like the clock.",
        "tags": [
          "Public"
        ],
        "x-fairgame-auth": "public",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "tenantSlug",
            "in": "path",
            "description": "The tenant's public slug."
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "tournamentSlug",
            "in": "path",
            "description": "The tournament's public slug."
          }
        ],
        "responses": {
          "200": {
            "description": "Every pitch with a published match on the clock's day and its now, next and on-deck matches.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicTournamentMatBoardResponse"
                }
              }
            }
          },
          "404": {
            "description": "Tenant or tournament not found, or the tournament is not public yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicTournamentClockErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/public/v2/live": {
      "get": {
        "operationId": "getPublicGlobalLive",
        "summary": "Read live matches across public tournaments.",
        "description": "Published tournaments only. Scores respect the published margin cap; pitch and kickoff use published slots. Live pages have at most 100 matches, ordered by immutable match ID. Follow nextCursor, restarting at the first page on refresh. If no matches are live, nextKickoff contains the earliest future published fixture (UTC instant).",
        "tags": [
          "Public"
        ],
        "x-fairgame-auth": "public",
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Last match ID from the previous page.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Up to 100 live matches grouped by tournament, or the next published kickoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalLiveResponse"
                }
              }
            }
          },
          "304": {
            "description": "Response is unchanged for the supplied ETag."
          },
          "400": {
            "description": "Invalid cursor."
          }
        }
      }
    },
    "/public/mobile/releases/{platform}": {
      "get": {
        "operationId": "getPublicMobileRelease",
        "summary": "Get mobile release metadata (public).",
        "tags": [
          "Public"
        ],
        "x-fairgame-auth": "public",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "ios",
                "android"
              ]
            },
            "required": true,
            "name": "platform",
            "in": "path",
            "description": "The mobile platform."
          }
        ],
        "responses": {
          "200": {
            "description": "Current optional update-prompt metadata for one mobile platform.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileReleaseResponse"
                }
              }
            }
          },
          "304": {
            "description": "Response is unchanged for the supplied ETag."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AuthErrorResponse": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          },
          "challengeName": {
            "type": "string"
          },
          "session": {
            "type": "string"
          }
        },
        "required": [
          "message"
        ]
      },
      "GlobalLiveMatch": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "homeTeamName": {
            "type": "string",
            "nullable": true
          },
          "awayTeamName": {
            "type": "string",
            "nullable": true
          },
          "homeTeamLogoUrl": {
            "type": "string",
            "nullable": true
          },
          "awayTeamLogoUrl": {
            "type": "string",
            "nullable": true
          },
          "pitchName": {
            "type": "string",
            "nullable": true
          },
          "kickoff": {
            "type": "string",
            "nullable": true
          },
          "homeScore": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "awayScore": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "status": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "homeTeamName",
          "awayTeamName",
          "homeTeamLogoUrl",
          "awayTeamLogoUrl",
          "pitchName",
          "kickoff",
          "homeScore",
          "awayScore",
          "status"
        ]
      },
      "GlobalLiveResponse": {
        "type": "object",
        "properties": {
          "tournaments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GlobalLiveTournament"
            }
          },
          "nextKickoff": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "tenantSlug": {
                "type": "string"
              },
              "tournamentSlug": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "matches": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/GlobalLiveMatch"
                }
              }
            },
            "required": [
              "id",
              "tenantSlug",
              "tournamentSlug",
              "name",
              "matches"
            ],
            "nullable": true
          },
          "nextCursor": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "required": [
          "tournaments",
          "nextKickoff",
          "nextCursor"
        ]
      },
      "GlobalLiveTournament": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantSlug": {
            "type": "string"
          },
          "tournamentSlug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "matches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GlobalLiveMatch"
            }
          }
        },
        "required": [
          "id",
          "tenantSlug",
          "tournamentSlug",
          "name",
          "matches"
        ]
      },
      "MatBoardMatch": {
        "type": "object",
        "description": "One match on a pitch's mat board: its category, both sides, its kickoff and its status. A side is null while the bracket node that feeds it is undecided.",
        "properties": {
          "matchId": {
            "type": "string",
            "format": "uuid"
          },
          "categoryId": {
            "type": "string",
            "format": "uuid"
          },
          "categoryName": {
            "type": "string",
            "nullable": true
          },
          "homeTeamId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "homeTeamName": {
            "type": "string",
            "nullable": true
          },
          "awayTeamId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "awayTeamName": {
            "type": "string",
            "nullable": true
          },
          "scheduledTime": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "locked",
              "waiting",
              "unscheduled",
              "scheduled",
              "in_progress",
              "completed",
              "cancelled",
              "postponed"
            ]
          }
        },
        "required": [
          "matchId",
          "categoryId",
          "categoryName",
          "homeTeamId",
          "homeTeamName",
          "awayTeamId",
          "awayTeamName",
          "scheduledTime",
          "status"
        ]
      },
      "MatBoardPitch": {
        "type": "object",
        "description": "One pitch (mat, court) on the mat board with what it plays now, next and on deck, computed by the server from the schedule and each match's status.",
        "properties": {
          "pitchId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "venueName": {
            "type": "string",
            "nullable": true
          },
          "now": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MatBoardMatch"
              }
            ],
            "nullable": true,
            "description": "The match being played, else the earliest match still to play whose slot has started; null when the pitch is idle."
          },
          "next": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MatBoardMatch"
              }
            ],
            "nullable": true,
            "description": "The first match still to play after now, in running order (slot time, then bracket play order)."
          },
          "onDeck": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MatBoardMatch"
              }
            ],
            "nullable": true,
            "description": "The match still to play after next."
          }
        },
        "required": [
          "pitchId",
          "name",
          "venueName",
          "now",
          "next",
          "onDeck"
        ]
      },
      "MobileRelease": {
        "type": "object",
        "nullable": true,
        "properties": {
          "platform": {
            "type": "string",
            "enum": [
              "ios",
              "android"
            ]
          },
          "version": {
            "type": "string",
            "maxLength": 32,
            "pattern": "^\\d+(?:\\.\\d+){1,2}$"
          },
          "buildIdentifier": {
            "type": "string",
            "maxLength": 32,
            "pattern": "^\\d+(?:\\.\\d+){0,2}$"
          },
          "storeUrl": {
            "type": "string",
            "format": "uri"
          },
          "minimumOsVersion": {
            "type": "string",
            "maxLength": 32,
            "pattern": "^\\d+(?:\\.\\d+){1,2}$"
          },
          "releasedAt": {
            "type": "string",
            "format": "date-time"
          },
          "promptEnabled": {
            "type": "boolean"
          }
        },
        "required": [
          "platform",
          "version",
          "buildIdentifier",
          "storeUrl",
          "minimumOsVersion",
          "releasedAt",
          "promptEnabled"
        ]
      },
      "MobileReleaseResponse": {
        "type": "object",
        "properties": {
          "release": {
            "$ref": "#/components/schemas/MobileRelease"
          }
        },
        "required": [
          "release"
        ]
      },
      "PublicBracketSideSource": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "none"
                ]
              },
              "pathSource": {
                "type": "object",
                "description": "Set when the side is the entrant beaten in `round` by whoever wins the node `bracketId` (#4035): resolved once that node is decided by walking the winner's path back to that round, after which the side's team publishes like any other.",
                "properties": {
                  "bracketId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "code": {
                    "type": "string"
                  },
                  "round": {
                    "type": "integer"
                  }
                },
                "required": [
                  "bracketId",
                  "code",
                  "round"
                ]
              }
            },
            "required": [
              "kind"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "group_rank"
                ]
              },
              "groupId": {
                "type": "string",
                "format": "uuid"
              },
              "groupName": {
                "type": "string"
              },
              "rank": {
                "type": "integer"
              }
            },
            "required": [
              "kind",
              "groupId",
              "groupName",
              "rank"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "winner_of"
                ]
              },
              "bracketId": {
                "type": "string",
                "format": "uuid"
              },
              "code": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "bracketId",
              "code"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "loser_of"
                ]
              },
              "bracketId": {
                "type": "string",
                "format": "uuid"
              },
              "code": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "bracketId",
              "code"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "seed"
                ]
              }
            },
            "required": [
              "kind"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "bye"
                ]
              }
            },
            "required": [
              "kind"
            ]
          }
        ]
      },
      "PublicBracketSlot": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "categoryId": {
            "type": "string",
            "nullable": true,
            "format": "uuid"
          },
          "track": {
            "type": "string",
            "enum": [
              "championship",
              "plate"
            ]
          },
          "tier": {
            "type": "integer",
            "nullable": true
          },
          "ordinal": {
            "type": "integer"
          },
          "cupsInTier": {
            "type": "integer",
            "minimum": 1,
            "description": "How many cups the node's ladder tier plays (#4708): 1 for a tier drawn as one cup, 2 or more when the draw split the tier's field into several brackets, which `ordinal` numbers — so a client names \"Tier 1 · Cup 2\" without counting trees. Served only on a node of a ladder tier; absent elsewhere and from older payloads."
          },
          "treeName": {
            "type": "string",
            "nullable": true
          },
          "tiePolicy": {
            "type": "string",
            "enum": [
              "shootout",
              "draw_allowed",
              "standings_tiebreak"
            ]
          },
          "position": {
            "type": "integer"
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "section": {
            "type": "string",
            "nullable": true
          },
          "roundIndex": {
            "type": "integer",
            "nullable": true
          },
          "roundsInSection": {
            "type": "integer",
            "nullable": true
          },
          "playOrder": {
            "type": "integer",
            "nullable": true
          },
          "decidesRanks": {
            "type": "object",
            "nullable": true,
            "properties": {
              "from": {
                "type": "integer"
              },
              "to": {
                "type": "integer"
              }
            },
            "required": [
              "from",
              "to"
            ]
          },
          "round": {
            "type": "string",
            "nullable": true
          },
          "homeTeamId": {
            "type": "string",
            "nullable": true,
            "format": "uuid"
          },
          "homeTeamName": {
            "type": "string",
            "nullable": true
          },
          "homeTeamLogo": {
            "type": "string",
            "nullable": true
          },
          "homeSource": {
            "$ref": "#/components/schemas/PublicBracketSideSource"
          },
          "awayTeamId": {
            "type": "string",
            "nullable": true,
            "format": "uuid"
          },
          "awayTeamName": {
            "type": "string",
            "nullable": true
          },
          "awayTeamLogo": {
            "type": "string",
            "nullable": true
          },
          "awaySource": {
            "$ref": "#/components/schemas/PublicBracketSideSource"
          },
          "winnerTeamId": {
            "type": "string",
            "nullable": true,
            "format": "uuid"
          },
          "winnerTeamName": {
            "type": "string",
            "nullable": true
          },
          "matchId": {
            "type": "string",
            "nullable": true,
            "format": "uuid"
          },
          "matchStatus": {
            "type": "string",
            "nullable": true
          },
          "homeScore": {
            "type": "integer",
            "nullable": true
          },
          "awayScore": {
            "type": "integer",
            "nullable": true
          },
          "homePenalties": {
            "type": "integer",
            "nullable": true
          },
          "awayPenalties": {
            "type": "integer",
            "nullable": true
          },
          "pitchId": {
            "type": "string",
            "nullable": true,
            "format": "uuid"
          },
          "pitchName": {
            "type": "string",
            "nullable": true
          },
          "date": {
            "type": "string",
            "nullable": true
          },
          "time": {
            "type": "string",
            "nullable": true
          },
          "outcome": {
            "type": "string",
            "enum": [
              "pending",
              "decided",
              "drawn",
              "unresolved"
            ],
            "description": "What the tournament system decided for this node (#3962): `decided` names a winner backed by a played result (a shootout or a standings tiebreak included), `drawn` is a terminal game a draw-allowing tree let stand level (both teams share the ranks it decides), `unresolved` is a level game nothing settled yet, `pending` is anything not played. Clients display it; they never classify a match themselves."
          },
          "decisionReason": {
            "type": "string",
            "nullable": true,
            "description": "Authoritative deciding reason: score, shootout, sanction, standings_tiebreak or bye. Null unless decided. Clients must tolerate future values."
          },
          "loserTeamId": {
            "type": "string",
            "nullable": true,
            "format": "uuid",
            "description": "The side `winnerTeamId` beat, once the node is `decided`; null otherwise."
          }
        },
        "required": [
          "id",
          "categoryId",
          "track",
          "tier",
          "ordinal",
          "treeName",
          "tiePolicy",
          "position",
          "code",
          "section",
          "roundIndex",
          "roundsInSection",
          "playOrder",
          "decidesRanks",
          "round",
          "homeTeamId",
          "homeTeamName",
          "homeTeamLogo",
          "homeSource",
          "awayTeamId",
          "awayTeamName",
          "awayTeamLogo",
          "awaySource",
          "winnerTeamId",
          "winnerTeamName",
          "matchId",
          "matchStatus",
          "homeScore",
          "awayScore",
          "homePenalties",
          "awayPenalties",
          "pitchId",
          "pitchName",
          "date",
          "time",
          "outcome",
          "loserTeamId"
        ]
      },
      "PublicChampion": {
        "type": "object",
        "description": "A settled title: one per championship tree whose final was played, or — for a category decided by one pool and no knockout: a Swiss pool (#4098), or a round-robin pool class whose system ends with its one group (#4714, a judo pool) — the pool's table leader once every match has a result (`tier` null, `ordinal` 1, `treeName` null). A category of two or more groups, or a ladder tier, has no such title.",
        "properties": {
          "categoryId": {
            "type": "string",
            "format": "uuid"
          },
          "tier": {
            "type": "integer",
            "nullable": true,
            "description": "The ladder tier this cup belongs to; null for a category's main championship tree."
          },
          "ordinal": {
            "type": "integer",
            "description": "Which of the tier's cups (1 for a plain category)."
          },
          "cupsInTier": {
            "type": "integer",
            "minimum": 1,
            "description": "How many cups the title's ladder tier plays (#4708): 1 for a tier drawn as one cup, 2 or more when the draw split the tier's field into several brackets, which `ordinal` numbers — so a client names \"Tier 1 · Cup 2\" without counting trees. Served only with a ladder tier; absent for a category's main championship tree, a pool title and older payloads."
          },
          "treeName": {
            "type": "string",
            "nullable": true
          },
          "teamId": {
            "type": "string",
            "format": "uuid",
            "description": "The champion: the decided final's winner, the home side of a drawn final both sides share, or a pool's table leader (the first of the teams sharing first place)."
          },
          "runnerUpTeamId": {
            "type": "string",
            "nullable": true,
            "format": "uuid",
            "description": "The final's loser, the other side of a shared title, or a pool's outright second place (null when second place is shared). A race names the first holder of a shared second. `runnerUpTeamIds` names every one."
          },
          "runnerUpTeamIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Every team the title names after its champion (#4947), read off the same placements as `finalStandings`: the final's loser; on a shared title, every co-winner after `teamId` (the other side of a drawn final, every other leader of a pool or race sharing first place); otherwise every team holding second place, so a pool's or race's shared second lists each holder, in served order. `runnerUpTeamId` is its first entry, except for a pool's shared second, where it is null. Absent from older payloads."
          },
          "thirdPlaceTeamId": {
            "type": "string",
            "nullable": true,
            "format": "uuid",
            "description": "The decided third-place game's winner, when the tree plays one, or a pool's outright third place."
          },
          "bronzeTeamIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Every bronze medallist (#4184), read off the same placements as `finalStandings`: the teams the tree places third. One for a tree that plays a third-place game (its winner, as `thirdPlaceTeamId`; both sides of a drawn one the tree lets stand); two for a repechage (judo's `repechage`, WKF's `repechage_finalists`: the bronze-contest winners) or a tree with no third-place game (the losing semi-finalists); every team holding a pool's third place. Empty until every game deciding third place is settled — or, with no such game, the whole tree — so it never holds half a podium. Absent from older payloads."
          },
          "sharedTitle": {
            "type": "boolean",
            "description": "The final ended level on a draw-allowing tree, or a pool's leaders share first place on its table: they share the title."
          }
        },
        "required": [
          "categoryId",
          "tier",
          "ordinal",
          "treeName",
          "teamId",
          "runnerUpTeamId",
          "thirdPlaceTeamId",
          "sharedTitle"
        ]
      },
      "PublicClub": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "shortName": {
            "type": "string",
            "nullable": true
          },
          "logoUrl": {
            "type": "string",
            "nullable": true,
            "maxLength": 500
          }
        },
        "required": [
          "id",
          "name",
          "shortName",
          "logoUrl"
        ]
      },
      "PublicFinalStanding": {
        "type": "object",
        "properties": {
          "categoryId": {
            "type": "string",
            "format": "uuid"
          },
          "teamId": {
            "type": "string",
            "format": "uuid"
          },
          "rank": {
            "type": "integer",
            "nullable": true,
            "description": "The team's final place in the category, or the best place of a shared range; null for a team whose bracket run never reached a placement game while its bracket is still being played. Once every game of the bracket is decided, such a team ranks by the round it went out in, below every team a placement game ranked: teams out in the same round share one rank, one more than the number of teams ranked above them (1, 2, 3, 3, 5, 5, 7, 7, …). A category decided by one pool and no knockout — a Swiss pool (#4098), or a round-robin pool class whose system ends with its one group (#4714) — takes its places from the pool's table once every match has a result."
          },
          "sharedThrough": {
            "type": "integer",
            "nullable": true,
            "description": "The worst place of a shared range (a drawn final shares 1–2; an unplayed placement game shares its two places; teams out in the same round of a played-out bracket share theirs, so two losing semi-finalists without a third-place game span 3–4; pool teams sharing a place on their table share their places); null for a settled single rank."
          },
          "resolved": {
            "type": "boolean",
            "description": "True once the placement is final — a decided game, a walkover, a drawn game the tree lets stand, or, for a team no placement game ranks, every game of its bracket decided. False while the deciding game is still to play or level with nothing to settle it."
          }
        },
        "required": [
          "categoryId",
          "teamId",
          "rank",
          "sharedThrough",
          "resolved"
        ]
      },
      "PublicMatchDetailResponse": {
        "type": "object",
        "properties": {
          "match": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "homeTeam": {
                "type": "object",
                "nullable": true,
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name"
                ]
              },
              "awayTeam": {
                "type": "object",
                "nullable": true,
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name"
                ]
              },
              "homeScore": {
                "type": "integer",
                "nullable": true
              },
              "awayScore": {
                "type": "integer",
                "nullable": true
              },
              "homePenalties": {
                "type": "integer",
                "nullable": true
              },
              "awayPenalties": {
                "type": "integer",
                "nullable": true
              },
              "status": {
                "type": "string"
              },
              "date": {
                "type": "string",
                "nullable": true
              },
              "time": {
                "type": "string",
                "nullable": true
              },
              "pairingReleaseTime": {
                "type": "string",
                "nullable": true
              },
              "pairingReleaseAt": {
                "type": "string",
                "nullable": true,
                "format": "date-time",
                "description": "Scheduled adaptive pairing release instant, not proof of a completed draw. Retained after pairing; null for unpublished schedules, abandoned waves and ordinary fixtures. May be absent in older payloads."
              },
              "abandoned": {
                "type": "boolean"
              },
              "durationMinutes": {
                "type": "integer",
                "nullable": true
              },
              "pitch": {
                "type": "object",
                "nullable": true,
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name"
                ]
              },
              "group": {
                "type": "object",
                "nullable": true,
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name"
                ]
              },
              "roundNumber": {
                "type": "integer",
                "nullable": true
              },
              "sanctions": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/PublicMatchSanction"
                },
                "description": "The sanctions recorded on the match (cards, fouls, shido), in recording order (#4032). Present only when the tournament records sanctions for a sport that has them and the match has at least one; absent reads as none."
              }
            },
            "required": [
              "id",
              "homeTeam",
              "awayTeam",
              "homeScore",
              "awayScore",
              "homePenalties",
              "awayPenalties",
              "status",
              "date",
              "time",
              "pairingReleaseTime",
              "durationMinutes",
              "pitch",
              "group",
              "roundNumber"
            ]
          },
          "tournament": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "slug": {
                "type": "string"
              }
            },
            "required": [
              "name",
              "slug"
            ]
          },
          "tenant": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "slug": {
                "type": "string"
              }
            },
            "required": [
              "name",
              "slug"
            ]
          }
        },
        "required": [
          "match",
          "tournament",
          "tenant"
        ]
      },
      "PublicMatchReferee": {
        "type": "object",
        "properties": {
          "matchId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "teamId": {
            "type": "string",
            "nullable": true,
            "format": "uuid"
          }
        },
        "required": [
          "matchId",
          "name",
          "teamId"
        ]
      },
      "PublicMatchSanction": {
        "type": "object",
        "properties": {
          "side": {
            "type": "string",
            "enum": [
              "home",
              "away"
            ]
          },
          "type": {
            "type": "string",
            "description": "The sport's sanction type id (`SportPenaltyType.id` in `@fairgame/sport`, e.g. `yellow_card`, `shido`); clients label it from the sport registry."
          },
          "minute": {
            "type": "integer",
            "description": "The match minute, present only when the organizer recorded one."
          }
        },
        "required": [
          "side",
          "type"
        ]
      },
      "PublicRaceResult": {
        "type": "object",
        "properties": {
          "categoryId": {
            "type": "string",
            "format": "uuid"
          },
          "teamId": {
            "type": "string",
            "format": "uuid"
          },
          "rank": {
            "type": "integer",
            "nullable": true,
            "description": "The finisher's place in the race, computed by the server in World Triathlon 2.11.c \"1224\" competition order: finishers by total time ascending, equal totals sharing a rank (ordered by start number), the next rank skipping the tied count. Null for every Invalid Result Marker (a DNF, LAP, NC, DSQ or DNS has no place)."
          },
          "startNumber": {
            "type": "integer",
            "nullable": true,
            "description": "The entrant's bib — the tiebreak between equal totals and the order of the markers (WT 2.11.c, 2.11.e)."
          },
          "status": {
            "$ref": "#/components/schemas/RaceResultStatus"
          },
          "elapsedMs": {
            "type": "integer",
            "nullable": true,
            "description": "The finish time in milliseconds; the time at the last timing point for a DNF / LAP. Null for a DSQ, whose time World Triathlon 2.11.e.ix withholds, and for an NC / DNS with no time."
          },
          "penaltyMs": {
            "type": "integer",
            "description": "A time added after the race (an unserved or on-the-spot penalty) in milliseconds; a penalty served during the race is already inside `elapsedMs` (WT 3.3)."
          },
          "totalMs": {
            "type": "integer",
            "nullable": true,
            "description": "`elapsedMs + penaltyMs`, the time the finisher is ranked on; null for a marker."
          },
          "gapMs": {
            "type": "integer",
            "nullable": true,
            "description": "The gap in milliseconds to the leader's total; null for a marker."
          }
        },
        "required": [
          "categoryId",
          "teamId",
          "rank",
          "startNumber",
          "status",
          "elapsedMs",
          "penaltyMs",
          "totalMs",
          "gapMs"
        ]
      },
      "PublicSnapshotArea": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "maxLength": 255
          },
          "location": {
            "type": "string",
            "nullable": true,
            "maxLength": 500
          }
        },
        "required": [
          "id",
          "name",
          "location"
        ]
      },
      "PublicSnapshotCategory": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "maxLength": 100
          },
          "gender": {
            "type": "string",
            "nullable": true,
            "enum": [
              "male",
              "female",
              "mixed",
              null
            ]
          },
          "publicStandingsVisible": {
            "type": "boolean",
            "nullable": true
          },
          "sortOrder": {
            "type": "integer",
            "minimum": -2147483648,
            "maximum": 2147483647
          },
          "durationMinutes": {
            "type": "integer",
            "description": "How long each of the category's matches is played for, in minutes. Every match in the category takes this length; there is no per-match override.",
            "minimum": 1,
            "maximum": 2147483647
          },
          "weightMinKg": {
            "type": "number",
            "format": "double",
            "nullable": true,
            "description": "The division's lower weight limit in kilograms (#4024): \"+87 kg\" admits athletes above 87. Null leaves it open; null on both sides is a division with no weight limit."
          },
          "weightMaxKg": {
            "type": "number",
            "format": "double",
            "nullable": true,
            "description": "The division's upper weight limit in kilograms (#4024): \"−47 kg\" admits athletes up to 47. Null leaves it open."
          },
          "qualification": {
            "type": "object",
            "nullable": true,
            "properties": {
              "advanceCount": {
                "type": "integer"
              },
              "bestThirdsCount": {
                "type": "integer"
              },
              "plateEnabled": {
                "type": "boolean"
              }
            },
            "required": [
              "advanceCount",
              "bestThirdsCount",
              "plateEnabled"
            ],
            "description": "How the category's group stage feeds its knockout (#3963): the teams that advance from each group, the best third-placed teams added across groups, and whether the rest play a plate. Null when the category has no group-to-knockout cut (round-robin only, a direct knockout draw, a ladder, or rank-pair finals, where every team plays the final its group place decides — see `bracketShape`). Each standings row says where it currently qualifies to in `qualifiesFor`."
          },
          "entrantCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647,
            "description": "How many teams or athletes are entered in the category (#4136), counted by the server: the teams drawn into its groups, plus the teams entered in the category that no group holds yet — so a division drawn straight into a bracket counts its athletes too. Withdrawn entrants still count, as they keep their group places. Absent from older payloads."
          },
          "entrantTeamIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "The teams or athletes entered in the category (#4159): exactly the entrants `entrantCount` counts, so its length is that count — the teams drawn into the category's groups, plus the teams entered in it that no group holds yet. Listed in the snapshot's team order; clients file teams under the category from this list and do not work the membership out from groups. Absent from older payloads."
          },
          "bracketShape": {
            "type": "string",
            "nullable": true,
            "enum": [
              "single_elimination",
              "full_placement",
              "rank_pair_finals",
              "double_elimination",
              "repechage",
              "repechage_finalists",
              null
            ],
            "description": "The shape the category's own knockout is drawn with (#4337), as the server draws it: single_elimination, full_placement (every rank played out), rank_pair_finals (one final per group place across the groups — every team plays the final its place decides, so `qualification` is null and no team has a `qualifiesFor`), double_elimination, repechage or repechage_finalists. Null when the category plays no knockout of its own (round-robin only, Swiss, a ladder whose tiers feed per-tier cups). New shapes may be added: treat an unknown value as a knockout with no special wording. Absent from older payloads."
          }
        },
        "required": [
          "id",
          "name",
          "gender",
          "publicStandingsVisible",
          "sortOrder",
          "durationMinutes",
          "weightMinKg",
          "weightMaxKg",
          "qualification"
        ]
      },
      "PublicSnapshotGroup": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "categoryId": {
            "type": "string",
            "nullable": true,
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "maxLength": 100
          },
          "tier": {
            "type": "integer",
            "nullable": true,
            "description": "Ladder tier within the group's day (1 = strongest) for a promotion/relegation ladder; null outside ladder mode (#3963)."
          },
          "tournamentDayId": {
            "type": "string",
            "nullable": true,
            "format": "uuid",
            "description": "The tournament day this group is played on, when the group belongs to one (ladders re-draw groups per day)."
          },
          "daySpan": {
            "type": "integer",
            "minimum": 1,
            "description": "Consecutive days the group plays from `tournamentDayId`, 1 for a one-day group (#4513). Always served; absent from older payloads."
          },
          "matchesPerTeam": {
            "type": "integer",
            "nullable": true,
            "minimum": 0,
            "description": "How many group games a team in this group plays (#4513): an adaptive pool's planned rounds, else the most fixtures any member has; null before the group has fixtures. Always served; absent from older payloads."
          },
          "playingDayNumbers": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 1
            },
            "description": "The tournament day numbers (`days[].dayNumber`) this group's matches are laid on, ascending (#4611): its first day and the next `daySpan - 1` days that can host matches, a `no_play` rest day inside the span skipped — `[1, 3]` for a group over Day 1 and Day 3 around a rest Day 2. Only days the tournament has are named: a span that reaches past its last day stops there. Empty for a group without a day. Clients label the days from this list and never add the span to the first day. Always served; absent from older payloads, where a client falls back to `daySpan`."
          },
          "phase": {
            "type": "object",
            "nullable": true,
            "properties": {
              "id": {
                "type": "string",
                "description": "The tournament system's phase id: `calibration` and `main` for a calibration format, `d1`, `d2`, … for a ladder's days, a format builder's own ids (`p1`, `p2`, …) otherwise. New ids may appear."
              },
              "label": {
                "type": "string",
                "nullable": true,
                "description": "The name the tournament system recorded for the phase, as recorded (built-in systems record an English name); null when it recorded none."
              }
            },
            "required": [
              "id",
              "label"
            ],
            "description": "The group stage of the category's tournament system this group belongs to (#4703): the step that opened last on or before the group's day, else the system's opening phase. Lets a client name a day's tables by what they were for (\"Calibration round\", \"Main groups\") instead of only \"Day 1\". Clients translate the ids they know and show `label` as written for others. Null when the category runs a single group stage. Always served; absent from older payloads."
          },
          "ranking": {
            "type": "object",
            "properties": {
              "mode": {
                "type": "string",
                "enum": [
                  "round_robin",
                  "swiss",
                  "adaptive",
                  "ladder"
                ]
              },
              "tiebreakers": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "settled": {
                "type": "boolean",
                "description": "Every match in the group has a result (and an adaptive pool has played every round it plans): the table is the final standing rather than the current one (#4098)."
              }
            },
            "required": [
              "mode",
              "tiebreakers",
              "settled"
            ],
            "description": "How the tournament system ranked this group's table (#3961): `round_robin` and `ladder` (a ladder tier) rank by the tournament's ladder, `swiss` is a pre-drawn Swiss pool and `adaptive` a skill-paired one — both rank on points first, then the Swiss ladder, where an adaptive pool's skill rating stands in for opponents' points (#4098). `tiebreakers` is the ladder actually applied, in order, named like the organizer's tiebreaker setting (`points`, `scoreDiff`, `scoreFor`, `wins`, `regulationWins`, `headToHead`, `subGroup`, `strengthOfSchedule`, `opponentsScoreDiff`, `rating`); clients may meet names they do not know yet and should skip them. Clients render the explanation from it and never hard-code a rule."
          }
        },
        "required": [
          "id",
          "categoryId",
          "name",
          "tier",
          "tournamentDayId",
          "ranking"
        ]
      },
      "PublicSnapshotGroupTeam": {
        "type": "object",
        "properties": {
          "groupId": {
            "type": "string",
            "format": "uuid"
          },
          "teamId": {
            "type": "string",
            "format": "uuid"
          },
          "ladderMovement": {
            "type": "string",
            "nullable": true,
            "enum": [
              "promoted",
              "relegated",
              "stayed",
              null
            ],
            "description": "For a promotion/relegation ladder: how the team reached this group's tier from its tier on the previous day (#3963). Null on the ladder's first day and outside ladder mode."
          }
        },
        "required": [
          "groupId",
          "teamId",
          "ladderMovement"
        ]
      },
      "PublicSnapshotMatch": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "categoryId": {
            "type": "string",
            "format": "uuid"
          },
          "groupId": {
            "type": "string",
            "nullable": true,
            "format": "uuid"
          },
          "homeTeamId": {
            "type": "string",
            "nullable": true,
            "format": "uuid"
          },
          "awayTeamId": {
            "type": "string",
            "nullable": true,
            "format": "uuid"
          },
          "pitchId": {
            "type": "string",
            "nullable": true,
            "format": "uuid"
          },
          "roundNumber": {
            "type": "integer",
            "nullable": true,
            "minimum": -2147483648,
            "maximum": 2147483647
          },
          "homeScore": {
            "type": "integer",
            "nullable": true,
            "minimum": -2147483648,
            "maximum": 2147483647
          },
          "awayScore": {
            "type": "integer",
            "nullable": true,
            "minimum": -2147483648,
            "maximum": 2147483647
          },
          "homePenalties": {
            "type": "integer",
            "nullable": true,
            "minimum": -2147483648,
            "maximum": 2147483647
          },
          "resultType": {
            "type": "string",
            "nullable": true,
            "enum": [
              "regulation",
              "overtime",
              "shootout",
              "walkover",
              null
            ]
          },
          "awayPenalties": {
            "type": "integer",
            "nullable": true,
            "minimum": -2147483648,
            "maximum": 2147483647
          },
          "status": {
            "type": "string",
            "enum": [
              "locked",
              "waiting",
              "unscheduled",
              "scheduled",
              "in_progress",
              "completed",
              "cancelled",
              "postponed"
            ]
          },
          "date": {
            "type": "string",
            "nullable": true
          },
          "time": {
            "type": "string",
            "nullable": true,
            "maxLength": 5
          },
          "pairingReleaseTime": {
            "type": "string",
            "nullable": true
          },
          "pairingReleaseAt": {
            "type": "string",
            "nullable": true,
            "format": "date-time",
            "description": "Scheduled adaptive pairing release instant, not proof of a completed draw. Retained after pairing; null for unpublished schedules, abandoned waves and ordinary fixtures. May be absent in older payloads."
          },
          "abandoned": {
            "type": "boolean"
          },
          "sanctions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicMatchSanction"
            },
            "description": "The sanctions recorded on the match (cards, fouls, shido), in recording order (#4032). Present only when the tournament records sanctions for a sport that has them and the match has at least one; absent reads as none."
          }
        },
        "required": [
          "id",
          "categoryId",
          "groupId",
          "homeTeamId",
          "awayTeamId",
          "pitchId",
          "roundNumber",
          "homeScore",
          "awayScore",
          "homePenalties",
          "resultType",
          "awayPenalties",
          "status",
          "date",
          "time",
          "pairingReleaseTime"
        ]
      },
      "PublicSnapshotPitch": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "areaId": {
            "type": "string",
            "nullable": true,
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "maxLength": 100
          },
          "surface": {
            "type": "string",
            "nullable": true,
            "enum": [
              "grass",
              "artificial",
              "indoor",
              "other",
              null
            ]
          },
          "location": {
            "type": "string",
            "nullable": true,
            "maxLength": 500
          },
          "latitude": {
            "type": "number",
            "nullable": true,
            "minimum": -140737488355328,
            "maximum": 140737488355327
          },
          "longitude": {
            "type": "number",
            "nullable": true,
            "minimum": -140737488355328,
            "maximum": 140737488355327
          }
        },
        "required": [
          "id",
          "areaId",
          "name",
          "surface",
          "location",
          "latitude",
          "longitude"
        ]
      },
      "PublicSnapshotStanding": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "groupId": {
            "type": "string",
            "format": "uuid"
          },
          "teamId": {
            "type": "string",
            "format": "uuid"
          },
          "played": {
            "type": "integer",
            "minimum": -2147483648,
            "maximum": 2147483647
          },
          "won": {
            "type": "integer",
            "minimum": -2147483648,
            "maximum": 2147483647
          },
          "drawn": {
            "type": "integer",
            "minimum": -2147483648,
            "maximum": 2147483647
          },
          "lost": {
            "type": "integer",
            "minimum": -2147483648,
            "maximum": 2147483647
          },
          "wonAfterRegulation": {
            "type": "integer",
            "minimum": -2147483648,
            "maximum": 2147483647
          },
          "lostAfterRegulation": {
            "type": "integer",
            "minimum": -2147483648,
            "maximum": 2147483647
          },
          "goalsFor": {
            "type": "integer",
            "minimum": -2147483648,
            "maximum": 2147483647
          },
          "goalsAgainst": {
            "type": "integer",
            "minimum": -2147483648,
            "maximum": 2147483647
          },
          "goalDifference": {
            "type": "integer",
            "minimum": -2147483648,
            "maximum": 2147483647
          },
          "points": {
            "type": "integer",
            "minimum": -2147483648,
            "maximum": 2147483647
          },
          "withdrawnAt": {
            "type": "string",
            "nullable": true,
            "format": "date-time"
          },
          "rating": {
            "type": "number",
            "nullable": true
          },
          "strengthOfSchedule": {
            "type": "number",
            "nullable": true,
            "description": "Sum of scored opponents’ current group points for pre-drawn Swiss pools; null otherwise. Byes contribute zero."
          },
          "rank": {
            "type": "integer",
            "minimum": 1,
            "description": "The row's 1-based place in its group — the ranking the tournament system applied (sport ladder, the organizer's tiebreakers, head-to-head, opponents' points or skill rating). Rows are served in this order; clients display the rank and never sort a table themselves (#3961). Teams a Swiss pool's ladder cannot separate share a place and repeat it (`1, 2, 2, 4`, #4098)."
          },
          "qualifiesFor": {
            "type": "string",
            "nullable": true,
            "enum": [
              "championship",
              "plate",
              null
            ],
            "description": "Where this row currently qualifies to on the category's qualification rule (`PublicSnapshotCategory.qualification`): the championship bracket (top N per group plus the best third-placed teams), the plate, or null when it goes no further — or when the category has no group-to-knockout cut (#3963), as under rank-pair finals, where every team plays the final its group place decides (#4337). A projection from the current table until the group is played out."
          }
        },
        "required": [
          "id",
          "groupId",
          "teamId",
          "played",
          "won",
          "drawn",
          "lost",
          "wonAfterRegulation",
          "lostAfterRegulation",
          "goalsFor",
          "goalsAgainst",
          "goalDifference",
          "points",
          "withdrawnAt",
          "rating",
          "rank",
          "qualifiesFor"
        ]
      },
      "PublicSnapshotTeam": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "clubId": {
            "type": "string",
            "nullable": true,
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "maxLength": 255
          },
          "withdrawnAt": {
            "type": "string",
            "nullable": true,
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "clubId",
          "name",
          "withdrawnAt"
        ]
      },
      "PublicSnapshotTeamRoundSlot": {
        "type": "object",
        "properties": {
          "teamId": {
            "type": "string",
            "format": "uuid"
          },
          "groupId": {
            "type": "string",
            "format": "uuid"
          },
          "roundNumber": {
            "type": "integer",
            "minimum": -2147483648,
            "maximum": 2147483647
          },
          "date": {
            "type": "string"
          },
          "time": {
            "type": "string",
            "maxLength": 5
          },
          "bye": {
            "type": "boolean"
          },
          "abandoned": {
            "type": "boolean"
          }
        },
        "required": [
          "teamId",
          "groupId",
          "roundNumber",
          "date",
          "time",
          "bye"
        ]
      },
      "PublicSnapshotTournament": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "maxLength": 255
          },
          "slug": {
            "type": "string",
            "maxLength": 255
          },
          "sportType": {
            "type": "string",
            "nullable": true,
            "maxLength": 50
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "published",
              "in_progress",
              "completed",
              "cancelled"
            ]
          },
          "startDate": {
            "type": "string",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "nullable": true
          },
          "registrationOpenedAt": {
            "type": "string",
            "nullable": true,
            "format": "date-time"
          },
          "registrationFeePerTeamIsk": {
            "type": "integer",
            "minimum": -2147483648,
            "maximum": 2147483647
          },
          "logoUrl": {
            "type": "string",
            "nullable": true,
            "maxLength": 500
          },
          "themeId": {
            "type": "string",
            "nullable": true,
            "enum": [
              "kinetic-light",
              "kinetic-dark",
              "ember",
              "floodlight",
              "turf",
              null
            ]
          },
          "sponsors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 120
                },
                "logoUrl": {
                  "type": "string",
                  "nullable": true,
                  "maxLength": 500
                },
                "linkUrl": {
                  "type": "string",
                  "nullable": true,
                  "maxLength": 500
                }
              },
              "required": [
                "name",
                "logoUrl",
                "linkUrl"
              ]
            },
            "maxItems": 24
          },
          "publicPages": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 120
                },
                "slug": {
                  "type": "string",
                  "maxLength": 80,
                  "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                },
                "body": {
                  "type": "string",
                  "maxLength": 20000
                }
              },
              "required": [
                "title",
                "slug",
                "body"
              ]
            },
            "maxItems": 12
          },
          "maxPublishedGoalDifference": {
            "type": "integer",
            "nullable": true,
            "minimum": -2147483648,
            "maximum": 2147483647
          },
          "capGoalDifferenceInStandings": {
            "type": "boolean"
          },
          "publicStandingsVisible": {
            "type": "boolean"
          },
          "registrationOpen": {
            "type": "boolean"
          },
          "registrationFeeFromIsk": {
            "type": "integer",
            "minimum": 0,
            "description": "The lowest entry fee across the categories (#4824). Served only while registrationOpen is true and the categories' fees differ from registrationFeePerTeamIsk; absent, every entry pays registrationFeePerTeamIsk."
          },
          "registrationFeeToIsk": {
            "type": "integer",
            "minimum": 0,
            "description": "The highest entry fee across the categories (#4824), served with registrationFeeFromIsk."
          }
        },
        "required": [
          "id",
          "name",
          "slug",
          "sportType",
          "status",
          "startDate",
          "endDate",
          "registrationOpenedAt",
          "registrationFeePerTeamIsk",
          "logoUrl",
          "themeId",
          "sponsors",
          "publicPages",
          "maxPublishedGoalDifference",
          "publicStandingsVisible"
        ]
      },
      "PublicSnapshotTournamentArea": {
        "type": "object",
        "properties": {
          "areaId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "areaId"
        ]
      },
      "PublicSnapshotVenues": {
        "type": "object",
        "properties": {
          "areas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicSnapshotArea"
            }
          },
          "tournamentAreas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicSnapshotTournamentArea"
            }
          },
          "pitches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicSnapshotPitch"
            }
          }
        },
        "required": [
          "areas",
          "tournamentAreas",
          "pitches"
        ]
      },
      "PublicTenant": {
        "type": "object",
        "properties": {
          "primaryLanguage": {
            "type": "string",
            "nullable": true,
            "enum": [
              "en",
              "is",
              "es",
              "fr",
              "de",
              "it",
              "fi",
              "da",
              "nb",
              "sv",
              null
            ],
            "description": "Verified content language. Null means unknown for tenants, or inherit the tenant language for tournament writes. Public tournament listings return the resolved language."
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "indexable": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "slug",
          "indexable"
        ]
      },
      "PublicTenantListResponse": {
        "type": "object",
        "properties": {
          "tenants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicTenant"
            }
          }
        },
        "required": [
          "tenants"
        ]
      },
      "PublicTournament": {
        "type": "object",
        "properties": {
          "primaryLanguage": {
            "type": "string",
            "nullable": true,
            "enum": [
              "en",
              "is",
              "es",
              "fr",
              "de",
              "it",
              "fi",
              "da",
              "nb",
              "sv",
              null
            ],
            "description": "Verified content language. Null means unknown for tenants, or inherit the tenant language for tournament writes. Public tournament listings return the resolved language."
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "logoUrl": {
            "type": "string",
            "nullable": true,
            "maxLength": 500
          },
          "sportType": {
            "type": "string",
            "nullable": true
          },
          "format": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "nullable": true
          },
          "location": {
            "type": "string",
            "nullable": true
          },
          "matchCount": {
            "type": "integer"
          },
          "playedMatchCount": {
            "type": "integer"
          },
          "showcase": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "slug",
          "logoUrl",
          "sportType",
          "format",
          "status",
          "startDate",
          "endDate",
          "location",
          "matchCount",
          "playedMatchCount",
          "showcase"
        ]
      },
      "PublicTournamentClockErrorResponse": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          },
          "reason": {
            "type": "string",
            "enum": [
              "not-found",
              "not-public"
            ]
          }
        },
        "required": [
          "message"
        ]
      },
      "PublicTournamentClockResponse": {
        "type": "object",
        "properties": {
          "clock": {
            "type": "object",
            "properties": {
              "state": {
                "type": "string",
                "enum": [
                  "idle",
                  "running",
                  "paused",
                  "stopped"
                ]
              },
              "matchSeconds": {
                "type": "integer"
              },
              "bufferSeconds": {
                "type": "integer"
              },
              "periods": {
                "type": "integer"
              },
              "periodBreakSeconds": {
                "type": "integer"
              },
              "halftimeSeconds": {
                "type": "integer"
              },
              "anchorRound": {
                "type": "integer"
              },
              "startedAt": {
                "type": "string",
                "nullable": true
              },
              "pausedAt": {
                "type": "string",
                "nullable": true
              },
              "pausedMs": {
                "type": "integer"
              },
              "activeDate": {
                "type": "string",
                "nullable": true
              },
              "usingTournamentDefaults": {
                "type": "boolean"
              }
            },
            "required": [
              "state",
              "matchSeconds",
              "bufferSeconds",
              "periods",
              "periodBreakSeconds",
              "halftimeSeconds",
              "anchorRound",
              "startedAt",
              "pausedAt",
              "pausedMs",
              "activeDate",
              "usingTournamentDefaults"
            ]
          },
          "reading": {
            "type": "object",
            "properties": {
              "state": {
                "type": "string",
                "enum": [
                  "idle",
                  "running",
                  "paused",
                  "stopped"
                ]
              },
              "phase": {
                "type": "string",
                "enum": [
                  "match",
                  "break",
                  "halftime",
                  "buffer"
                ]
              },
              "period": {
                "type": "integer",
                "nullable": true,
                "minimum": 1
              },
              "periods": {
                "type": "integer",
                "minimum": 1
              },
              "round": {
                "type": "integer"
              },
              "remainingSeconds": {
                "type": "integer"
              },
              "elapsedSeconds": {
                "type": "integer"
              },
              "phaseSeconds": {
                "type": "integer"
              },
              "ticking": {
                "type": "boolean"
              }
            },
            "required": [
              "state",
              "phase",
              "period",
              "periods",
              "round",
              "remainingSeconds",
              "elapsedSeconds",
              "phaseSeconds",
              "ticking"
            ]
          },
          "serverTime": {
            "type": "string"
          },
          "tournamentName": {
            "type": "string"
          },
          "activeDate": {
            "type": "string",
            "nullable": true
          },
          "courts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "pitchId": {
                  "type": "string",
                  "format": "uuid"
                },
                "pitchName": {
                  "type": "string"
                },
                "venueName": {
                  "type": "string",
                  "nullable": true
                },
                "current": {
                  "type": "object",
                  "nullable": true,
                  "properties": {
                    "matchId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "categoryName": {
                      "type": "string",
                      "nullable": true
                    },
                    "groupName": {
                      "type": "string",
                      "nullable": true
                    },
                    "homeTeamName": {
                      "type": "string",
                      "nullable": true
                    },
                    "awayTeamName": {
                      "type": "string",
                      "nullable": true
                    },
                    "scheduledTime": {
                      "type": "string",
                      "nullable": true
                    },
                    "status": {
                      "type": "string"
                    },
                    "homeScore": {
                      "type": "integer",
                      "nullable": true
                    },
                    "awayScore": {
                      "type": "integer",
                      "nullable": true
                    }
                  },
                  "required": [
                    "matchId",
                    "categoryName",
                    "groupName",
                    "homeTeamName",
                    "awayTeamName",
                    "scheduledTime",
                    "status",
                    "homeScore",
                    "awayScore"
                  ]
                },
                "next": {
                  "type": "object",
                  "nullable": true,
                  "properties": {
                    "matchId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "categoryName": {
                      "type": "string",
                      "nullable": true
                    },
                    "groupName": {
                      "type": "string",
                      "nullable": true
                    },
                    "homeTeamName": {
                      "type": "string",
                      "nullable": true
                    },
                    "awayTeamName": {
                      "type": "string",
                      "nullable": true
                    },
                    "scheduledTime": {
                      "type": "string",
                      "nullable": true
                    },
                    "status": {
                      "type": "string"
                    },
                    "homeScore": {
                      "type": "integer",
                      "nullable": true
                    },
                    "awayScore": {
                      "type": "integer",
                      "nullable": true
                    }
                  },
                  "required": [
                    "matchId",
                    "categoryName",
                    "groupName",
                    "homeTeamName",
                    "awayTeamName",
                    "scheduledTime",
                    "status",
                    "homeScore",
                    "awayScore"
                  ]
                },
                "fixtureCount": {
                  "type": "integer"
                }
              },
              "required": [
                "pitchId",
                "pitchName",
                "venueName",
                "current",
                "next",
                "fixtureCount"
              ]
            }
          },
          "dayComplete": {
            "type": "boolean"
          }
        },
        "required": [
          "clock",
          "reading",
          "serverTime",
          "tournamentName",
          "activeDate",
          "courts",
          "dayComplete"
        ]
      },
      "PublicTournamentDay": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "dayNumber": {
            "type": "integer"
          },
          "date": {
            "type": "string"
          },
          "gameType": {
            "type": "string",
            "enum": [
              "round_robin",
              "knockout",
              "group_knockout",
              "no_play"
            ]
          },
          "matchCount": {
            "type": "integer"
          }
        },
        "required": [
          "id",
          "dayNumber",
          "date",
          "gameType",
          "matchCount"
        ]
      },
      "PublicTournamentDetailResponse": {
        "type": "object",
        "properties": {
          "entrantCount": {
            "type": "integer",
            "minimum": 0,
            "description": "Active tournament entrants, including undrawn category entries, counted once each. Withdrawn and unplaced records are excluded."
          },
          "tournament": {
            "$ref": "#/components/schemas/PublicSnapshotTournament"
          },
          "categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicSnapshotCategory"
            }
          },
          "clubs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicClub"
            }
          },
          "teams": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicSnapshotTeam"
            }
          },
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicSnapshotGroup"
            }
          },
          "groupTeams": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicSnapshotGroupTeam"
            }
          },
          "standings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicSnapshotStanding"
            }
          },
          "matches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicSnapshotMatch"
            }
          },
          "teamRoundSlots": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicSnapshotTeamRoundSlot"
            }
          },
          "matchReferees": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicMatchReferee"
            }
          },
          "brackets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicBracketSlot"
            }
          },
          "days": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicTournamentDay"
            }
          },
          "venues": {
            "$ref": "#/components/schemas/PublicSnapshotVenues"
          },
          "finalStandings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicFinalStanding"
            },
            "description": "Each category's final placements, 1..N, as the tournament system reads them off its knockout trees (#3962): the championship tree first, then the plate and each ladder cup continuing the numbering. Settled rows carry one rank; a drawn terminal game shares a range; a placement game still to play shares its range unresolved."
          },
          "champions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicChampion"
            },
            "description": "One entry per championship tree whose final has actually been played (#3962) — never a plate, never a final nobody played."
          },
          "raceResults": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicRaceResult"
            },
            "description": "Each timed-race category's ranked results (specs/039-triathlon-sport), computed by the server by World Triathlon 2.11. Served only for a race sport with at least one recorded row, so every fixture-sport payload is unchanged."
          }
        },
        "required": [
          "tournament",
          "categories",
          "clubs",
          "teams",
          "groups",
          "groupTeams",
          "standings",
          "matches",
          "teamRoundSlots",
          "matchReferees",
          "brackets",
          "days",
          "venues",
          "finalStandings",
          "champions"
        ]
      },
      "PublicTournamentDiscoveryItem": {
        "allOf": [
          {
            "$ref": "#/components/schemas/PublicTournament"
          },
          {
            "type": "object",
            "properties": {
              "tenant": {
                "$ref": "#/components/schemas/PublicTenant"
              }
            },
            "required": [
              "tenant"
            ]
          }
        ]
      },
      "PublicTournamentDiscoveryResponse": {
        "type": "object",
        "properties": {
          "tournaments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicTournamentDiscoveryItem"
            }
          }
        },
        "required": [
          "tournaments"
        ]
      },
      "PublicTournamentListResponse": {
        "type": "object",
        "properties": {
          "tournaments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicTournament"
            }
          }
        },
        "required": [
          "tournaments"
        ]
      },
      "PublicTournamentMatBoardResponse": {
        "type": "object",
        "properties": {
          "tournamentName": {
            "type": "string"
          },
          "date": {
            "type": "string",
            "nullable": true,
            "description": "The day the board reads (YYYY-MM-DD): the clock's active day, else today when it is a tournament day, else the opening day."
          },
          "serverTime": {
            "type": "string",
            "description": "The instant the board was computed at (ISO 8601)."
          },
          "pitches": {
            "type": "array",
            "description": "Every pitch with a published match on the day, by venue and pitch name; empty until the schedule is published.",
            "items": {
              "$ref": "#/components/schemas/MatBoardPitch"
            }
          }
        },
        "required": [
          "tournamentName",
          "date",
          "serverTime",
          "pitches"
        ]
      },
      "PublicTournamentSummaryResponse": {
        "type": "object",
        "properties": {
          "tournament": {
            "$ref": "#/components/schemas/PublicSnapshotTournament"
          },
          "counts": {
            "type": "object",
            "properties": {
              "categories": {
                "type": "integer"
              },
              "teams": {
                "type": "integer"
              },
              "activeTeams": {
                "type": "integer"
              },
              "matches": {
                "type": "integer"
              },
              "brackets": {
                "type": "integer"
              },
              "pitches": {
                "type": "integer"
              }
            },
            "required": [
              "categories",
              "teams",
              "activeTeams",
              "matches",
              "brackets",
              "pitches"
            ]
          },
          "hasPitchLocations": {
            "type": "boolean"
          }
        },
        "required": [
          "tournament",
          "counts",
          "hasPitchLocations"
        ]
      },
      "RaceResultStatus": {
        "type": "string",
        "enum": [
          "finished",
          "dnf",
          "lap",
          "nc",
          "dsq",
          "dns"
        ],
        "description": "An entrant's race result: `finished` with a time, or one of the Invalid Result Markers listed after the finishers in this order (World Triathlon 2.11.e) — `dnf` (did not finish), `lap` (lapped or stopped by the last-biker / first-runner rule), `nc` (not classified: a cut-off, or a federation's second team), `dsq` (disqualified; the time is withheld), `dns` (did not start)."
      }
    }
  }
}
