{
  "openapi": "3.1.0",
  "info": {
    "title": "Tournament OS Public API",
    "version": "1.0.0",
    "description": "Read published competition data for a tournament edition. Issue a scoped bearer token from Tournament OS and keep the secret on a trusted backend."
  },
  "servers": [
    {
      "url": "/api/public/v1",
      "description": "Relative to the Tournament OS deployment origin"
    }
  ],
  "security": [
    {
      "publicApiToken": []
    }
  ],
  "paths": {
    "/editions": {
      "get": {
        "operationId": "listEditions",
        "summary": "Discover editions",
        "description": "Lists published editions accessible to the token. A featured edition explicitly typed as the 10th National Games precedes other featured editions. Order then uses the latest identity or branding change and a stable identifier.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Locale"
          },
          {
            "$ref": "#/components/parameters/CmsTournamentId"
          },
          {
            "$ref": "#/components/parameters/Featured"
          },
          {
            "$ref": "#/components/parameters/Page"
          },
          {
            "$ref": "#/components/parameters/PageSize"
          }
        ],
        "responses": {
          "200": {
            "description": "Published resource or an available empty resource.",
            "headers": {
              "X-Request-Id": {
                "description": "Request identifier for diagnosis.",
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "description": "Authenticated API responses use private, no-store.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Edition"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/CompetitionPageMeta"
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "matchingEdition": {
                    "value": {
                      "data": [
                        {
                          "id": "10000000-0000-4000-8000-000000000001",
                          "editionId": "10000000-0000-4000-8000-000000000001",
                          "tournamentId": "10000000-0000-4000-8000-000000000002",
                          "cmsTournamentId": "example-cms-10",
                          "editionNumber": 10,
                          "competitionType": "NATIONAL_GAMES",
                          "featured": false,
                          "name": "10th National Games",
                          "location": "Example venue city",
                          "startDate": "2026-12-02",
                          "endDate": "2026-12-09",
                          "logoUrl": null,
                          "mascotUrl": null,
                          "coverUrl": null,
                          "slogan": null,
                          "color": null,
                          "accentColor": null,
                          "updatedAt": null
                        }
                      ],
                      "meta": {
                        "locale": "en",
                        "page": 1,
                        "pageSize": 25,
                        "total": 1,
                        "totalPages": 1,
                        "state": "published",
                        "updatedAt": null
                      }
                    }
                  },
                  "noFeaturedEdition": {
                    "value": {
                      "data": [],
                      "meta": {
                        "locale": "en",
                        "page": 1,
                        "pageSize": 25,
                        "total": 0,
                        "totalPages": 0,
                        "state": "published_empty",
                        "updatedAt": null
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/OriginNotAllowed"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      },
      "head": {
        "operationId": "listEditionsHead",
        "summary": "Check discover editions",
        "description": "Checks authorization and filters with the same status and headers as GET. Returns no body.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Locale"
          },
          {
            "$ref": "#/components/parameters/CmsTournamentId"
          },
          {
            "$ref": "#/components/parameters/Featured"
          },
          {
            "$ref": "#/components/parameters/Page"
          },
          {
            "$ref": "#/components/parameters/PageSize"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/SuccessHead"
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequestHead"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedHead"
          },
          "403": {
            "$ref": "#/components/responses/OriginNotAllowedHead"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundHead"
          },
          "429": {
            "$ref": "#/components/responses/RateLimitedHead"
          },
          "500": {
            "$ref": "#/components/responses/UnavailableHead"
          }
        }
      },
      "options": {
        "operationId": "listEditionsPreflight",
        "summary": "Check cross-origin browser access",
        "security": [],
        "parameters": [],
        "responses": {
          "204": {
            "$ref": "#/components/responses/CorsPreflight"
          },
          "403": {
            "$ref": "#/components/responses/OriginNotAllowed"
          }
        }
      }
    },
    "/editions/{editionId}": {
      "get": {
        "operationId": "getEdition",
        "summary": "Get edition identity",
        "description": "Returns the edition's Tournament OS identity and its optional external CMS mapping.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Locale"
          },
          {
            "$ref": "#/components/parameters/EditionId"
          }
        ],
        "responses": {
          "200": {
            "description": "Published resource or an available empty resource.",
            "headers": {
              "X-Request-Id": {
                "description": "Request identifier for diagnosis.",
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "description": "Authenticated API responses use private, no-store.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Edition"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "mappedEdition": {
                    "value": {
                      "data": {
                        "id": "10000000-0000-4000-8000-000000000001",
                        "editionId": "10000000-0000-4000-8000-000000000001",
                        "tournamentId": "10000000-0000-4000-8000-000000000002",
                        "cmsTournamentId": "example-cms-10",
                        "editionNumber": 10,
                        "competitionType": "NATIONAL_GAMES",
                        "featured": false,
                        "name": "10th National Games",
                        "location": "Example venue city",
                        "startDate": "2026-12-02",
                        "endDate": "2026-12-09",
                        "logoUrl": null,
                        "mascotUrl": null,
                        "coverUrl": null,
                        "slogan": null,
                        "color": null,
                        "accentColor": null,
                        "updatedAt": null
                      },
                      "meta": {
                        "locale": "en"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/OriginNotAllowed"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      },
      "head": {
        "operationId": "getEditionHead",
        "summary": "Check get edition identity",
        "description": "Checks authorization and filters with the same status and headers as GET. Returns no body.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Locale"
          },
          {
            "$ref": "#/components/parameters/EditionId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/SuccessHead"
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequestHead"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedHead"
          },
          "403": {
            "$ref": "#/components/responses/OriginNotAllowedHead"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundHead"
          },
          "429": {
            "$ref": "#/components/responses/RateLimitedHead"
          },
          "500": {
            "$ref": "#/components/responses/UnavailableHead"
          }
        }
      },
      "options": {
        "operationId": "getEditionPreflight",
        "summary": "Check cross-origin browser access",
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/EditionId"
          }
        ],
        "responses": {
          "204": {
            "$ref": "#/components/responses/CorsPreflight"
          },
          "403": {
            "$ref": "#/components/responses/OriginNotAllowed"
          }
        }
      }
    },
    "/editions/{editionId}/sports": {
      "get": {
        "operationId": "listSports",
        "summary": "List edition sports",
        "description": "Counts all published event categories, approved fixtures, and current official results. Includes sports before any fixtures have been scheduled.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Locale"
          },
          {
            "$ref": "#/components/parameters/EditionId"
          },
          {
            "$ref": "#/components/parameters/Page"
          },
          {
            "$ref": "#/components/parameters/PageSize"
          }
        ],
        "responses": {
          "200": {
            "description": "Published resource or an available empty resource.",
            "headers": {
              "X-Request-Id": {
                "description": "Request identifier for diagnosis.",
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "description": "Authenticated API responses use private, no-store.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Sport"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/CompetitionPageMeta"
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/OriginNotAllowed"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      },
      "head": {
        "operationId": "listSportsHead",
        "summary": "Check list edition sports",
        "description": "Checks authorization and filters with the same status and headers as GET. Returns no body.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Locale"
          },
          {
            "$ref": "#/components/parameters/EditionId"
          },
          {
            "$ref": "#/components/parameters/Page"
          },
          {
            "$ref": "#/components/parameters/PageSize"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/SuccessHead"
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequestHead"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedHead"
          },
          "403": {
            "$ref": "#/components/responses/OriginNotAllowedHead"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundHead"
          },
          "429": {
            "$ref": "#/components/responses/RateLimitedHead"
          },
          "500": {
            "$ref": "#/components/responses/UnavailableHead"
          }
        }
      },
      "options": {
        "operationId": "listSportsPreflight",
        "summary": "Check cross-origin browser access",
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/EditionId"
          }
        ],
        "responses": {
          "204": {
            "$ref": "#/components/responses/CorsPreflight"
          },
          "403": {
            "$ref": "#/components/responses/OriginNotAllowed"
          }
        }
      }
    },
    "/editions/{editionId}/events": {
      "get": {
        "operationId": "listEvents",
        "summary": "List edition events",
        "description": "Contains active categories and inactive categories with approved schedules. The optional sport must be in this edition.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Locale"
          },
          {
            "$ref": "#/components/parameters/EditionId"
          },
          {
            "$ref": "#/components/parameters/SportId"
          },
          {
            "$ref": "#/components/parameters/Page"
          },
          {
            "$ref": "#/components/parameters/PageSize"
          }
        ],
        "responses": {
          "200": {
            "description": "Published resource or an available empty resource.",
            "headers": {
              "X-Request-Id": {
                "description": "Request identifier for diagnosis.",
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "description": "Authenticated API responses use private, no-store.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Event"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/EventPageMeta"
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/OriginNotAllowed"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      },
      "head": {
        "operationId": "listEventsHead",
        "summary": "Check list edition events",
        "description": "Checks authorization and filters with the same status and headers as GET. Returns no body.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Locale"
          },
          {
            "$ref": "#/components/parameters/EditionId"
          },
          {
            "$ref": "#/components/parameters/SportId"
          },
          {
            "$ref": "#/components/parameters/Page"
          },
          {
            "$ref": "#/components/parameters/PageSize"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/SuccessHead"
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequestHead"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedHead"
          },
          "403": {
            "$ref": "#/components/responses/OriginNotAllowedHead"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundHead"
          },
          "429": {
            "$ref": "#/components/responses/RateLimitedHead"
          },
          "500": {
            "$ref": "#/components/responses/UnavailableHead"
          }
        }
      },
      "options": {
        "operationId": "listEventsPreflight",
        "summary": "Check cross-origin browser access",
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/EditionId"
          }
        ],
        "responses": {
          "204": {
            "$ref": "#/components/responses/CorsPreflight"
          },
          "403": {
            "$ref": "#/components/responses/OriginNotAllowed"
          }
        }
      }
    },
    "/editions/{editionId}/teams": {
      "get": {
        "operationId": "listTeams",
        "summary": "List edition delegations",
        "description": "Use the complete roster. Teams with no medals remain present. The returned identifiers also resolve medal and fixture references.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Locale"
          },
          {
            "$ref": "#/components/parameters/EditionId"
          },
          {
            "$ref": "#/components/parameters/Page"
          },
          {
            "$ref": "#/components/parameters/PageSize"
          }
        ],
        "responses": {
          "200": {
            "description": "Published resource or an available empty resource.",
            "headers": {
              "X-Request-Id": {
                "description": "Request identifier for diagnosis.",
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "description": "Authenticated API responses use private, no-store.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Team"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/CompetitionPageMeta"
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "completeExampleRoster": {
                    "value": {
                      "data": [
                        {
                          "id": "team-a",
                          "editionId": "10000000-0000-4000-8000-000000000001",
                          "name": "Example Delegation A",
                          "sortOrder": 1
                        },
                        {
                          "id": "team-b",
                          "editionId": "10000000-0000-4000-8000-000000000001",
                          "name": "Example Delegation B",
                          "sortOrder": 2
                        },
                        {
                          "id": "team-c",
                          "editionId": "10000000-0000-4000-8000-000000000001",
                          "name": "Example Delegation C",
                          "sortOrder": 3
                        },
                        {
                          "id": "team-d",
                          "editionId": "10000000-0000-4000-8000-000000000001",
                          "name": "Example Delegation D",
                          "sortOrder": 4
                        }
                      ],
                      "meta": {
                        "locale": "en",
                        "page": 1,
                        "pageSize": 25,
                        "total": 4,
                        "totalPages": 1,
                        "state": "published",
                        "updatedAt": null
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/OriginNotAllowed"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      },
      "head": {
        "operationId": "listTeamsHead",
        "summary": "Check list edition delegations",
        "description": "Checks authorization and filters with the same status and headers as GET. Returns no body.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Locale"
          },
          {
            "$ref": "#/components/parameters/EditionId"
          },
          {
            "$ref": "#/components/parameters/Page"
          },
          {
            "$ref": "#/components/parameters/PageSize"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/SuccessHead"
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequestHead"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedHead"
          },
          "403": {
            "$ref": "#/components/responses/OriginNotAllowedHead"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundHead"
          },
          "429": {
            "$ref": "#/components/responses/RateLimitedHead"
          },
          "500": {
            "$ref": "#/components/responses/UnavailableHead"
          }
        }
      },
      "options": {
        "operationId": "listTeamsPreflight",
        "summary": "Check cross-origin browser access",
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/EditionId"
          }
        ],
        "responses": {
          "204": {
            "$ref": "#/components/responses/CorsPreflight"
          },
          "403": {
            "$ref": "#/components/responses/OriginNotAllowed"
          }
        }
      }
    },
    "/editions/{editionId}/fixtures": {
      "get": {
        "operationId": "listFixtures",
        "summary": "List approved fixtures",
        "description": "Includes approved cancellations in the full schedule. Sorts by approved start ascending, with null starts last and fixture ID as a tie-break. An event filter implies its own sport for event badge totals.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Locale"
          },
          {
            "$ref": "#/components/parameters/EditionId"
          },
          {
            "$ref": "#/components/parameters/SportId"
          },
          {
            "$ref": "#/components/parameters/EventId"
          },
          {
            "$ref": "#/components/parameters/UpcomingView"
          },
          {
            "$ref": "#/components/parameters/Page"
          },
          {
            "$ref": "#/components/parameters/PageSize"
          }
        ],
        "responses": {
          "200": {
            "description": "Published resource or an available empty resource.",
            "headers": {
              "X-Request-Id": {
                "description": "Request identifier for diagnosis.",
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "description": "Authenticated API responses use private, no-store.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Fixture"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/CompetitionListMeta"
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "multipleParticipants": {
                    "value": {
                      "data": [
                        {
                          "id": "10000000-0000-4000-8000-000000000006",
                          "editionId": "10000000-0000-4000-8000-000000000001",
                          "eventId": "10000000-0000-4000-8000-000000000005",
                          "sportId": "10000000-0000-4000-8000-000000000003",
                          "eventName": "Men's 100 m",
                          "sportName": "Athletics",
                          "entrantKind": "individual",
                          "title": "Men’s 100 m · Final",
                          "phase": "Final",
                          "round": 1,
                          "match": 1,
                          "group": null,
                          "startsAt": "2026-12-02T19:05:00.000Z",
                          "nepalDate": "2026-12-03",
                          "updatedAt": "2026-12-02T19:30:00.000Z",
                          "status": "completed",
                          "venue": "Example Stadium",
                          "venueId": null,
                          "participants": [
                            {
                              "entrantId": "10000000-0000-4000-8000-000000000009",
                              "displayName": "Example Athlete A",
                              "teamId": "team-a",
                              "teamName": "Example Delegation A",
                              "order": 1
                            },
                            {
                              "entrantId": "10000000-0000-4000-8000-000000000010",
                              "displayName": "Example Athlete B",
                              "teamId": "team-b",
                              "teamName": "Example Delegation B",
                              "order": 2
                            },
                            {
                              "entrantId": "10000000-0000-4000-8000-000000000011",
                              "displayName": "Example Athlete C",
                              "teamId": "team-c",
                              "teamName": "Example Delegation C",
                              "order": 3
                            }
                          ]
                        }
                      ],
                      "meta": {
                        "locale": "en",
                        "page": 1,
                        "pageSize": 25,
                        "total": 1,
                        "totalPages": 1,
                        "state": "published",
                        "updatedAt": "2026-12-02T19:30:00.000Z",
                        "counts": {
                          "allEvents": 1,
                          "byEvent": [
                            {
                              "eventId": "10000000-0000-4000-8000-000000000005",
                              "count": 1
                            }
                          ]
                        }
                      }
                    }
                  },
                  "emptySport": {
                    "value": {
                      "data": [],
                      "meta": {
                        "locale": "en",
                        "page": 1,
                        "pageSize": 25,
                        "total": 0,
                        "totalPages": 0,
                        "state": "published_empty",
                        "updatedAt": null,
                        "counts": {
                          "allEvents": 0,
                          "byEvent": [
                            {
                              "eventId": "10000000-0000-4000-8000-000000000005",
                              "count": 0
                            }
                          ]
                        }
                      }
                    }
                  },
                  "pendingFixture": {
                    "value": {
                      "data": [
                        {
                          "id": "10000000-0000-4000-8000-000000000006",
                          "editionId": "10000000-0000-4000-8000-000000000001",
                          "eventId": "10000000-0000-4000-8000-000000000005",
                          "sportId": "10000000-0000-4000-8000-000000000003",
                          "eventName": "Men's 100 m",
                          "sportName": "Athletics",
                          "entrantKind": "individual",
                          "title": "Men’s 100 m · Final",
                          "phase": "Final",
                          "round": 1,
                          "match": 1,
                          "group": null,
                          "startsAt": null,
                          "nepalDate": null,
                          "updatedAt": "2026-12-02T19:30:00.000Z",
                          "status": "time_pending",
                          "venue": null,
                          "venueId": null,
                          "participants": []
                        }
                      ],
                      "meta": {
                        "locale": "en",
                        "page": 1,
                        "pageSize": 25,
                        "total": 1,
                        "totalPages": 1,
                        "state": "published",
                        "updatedAt": null,
                        "counts": {
                          "allEvents": 1,
                          "byEvent": [
                            {
                              "eventId": "10000000-0000-4000-8000-000000000005",
                              "count": 1
                            }
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/OriginNotAllowed"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      },
      "head": {
        "operationId": "listFixturesHead",
        "summary": "Check list approved fixtures",
        "description": "Checks authorization and filters with the same status and headers as GET. Returns no body.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Locale"
          },
          {
            "$ref": "#/components/parameters/EditionId"
          },
          {
            "$ref": "#/components/parameters/SportId"
          },
          {
            "$ref": "#/components/parameters/EventId"
          },
          {
            "$ref": "#/components/parameters/UpcomingView"
          },
          {
            "$ref": "#/components/parameters/Page"
          },
          {
            "$ref": "#/components/parameters/PageSize"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/SuccessHead"
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequestHead"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedHead"
          },
          "403": {
            "$ref": "#/components/responses/OriginNotAllowedHead"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundHead"
          },
          "429": {
            "$ref": "#/components/responses/RateLimitedHead"
          },
          "500": {
            "$ref": "#/components/responses/UnavailableHead"
          }
        }
      },
      "options": {
        "operationId": "listFixturesPreflight",
        "summary": "Check cross-origin browser access",
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/EditionId"
          }
        ],
        "responses": {
          "204": {
            "$ref": "#/components/responses/CorsPreflight"
          },
          "403": {
            "$ref": "#/components/responses/OriginNotAllowed"
          }
        }
      }
    },
    "/editions/{editionId}/results": {
      "get": {
        "operationId": "listResults",
        "summary": "List official results",
        "description": "Sorts by first public publication descending, with null timestamps last and fixture ID as the tie-break. Corrections retain the result and fixture ID. Unpublished and provisional outcomes stay outside the list.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Locale"
          },
          {
            "$ref": "#/components/parameters/EditionId"
          },
          {
            "$ref": "#/components/parameters/SportId"
          },
          {
            "$ref": "#/components/parameters/EventId"
          },
          {
            "$ref": "#/components/parameters/LatestView"
          },
          {
            "$ref": "#/components/parameters/Page"
          },
          {
            "$ref": "#/components/parameters/PageSize"
          }
        ],
        "responses": {
          "200": {
            "description": "Published resource or an available empty resource.",
            "headers": {
              "X-Request-Id": {
                "description": "Request identifier for diagnosis.",
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "description": "Authenticated API responses use private, no-store.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Result"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/CompetitionListMeta"
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "correctedRankedFinal": {
                    "value": {
                      "data": [
                        {
                          "id": "10000000-0000-4000-8000-000000000006",
                          "editionId": "10000000-0000-4000-8000-000000000001",
                          "eventId": "10000000-0000-4000-8000-000000000005",
                          "sportId": "10000000-0000-4000-8000-000000000003",
                          "eventName": "Men's 100 m",
                          "sportName": "Athletics",
                          "entrantKind": "individual",
                          "title": "Men’s 100 m · Final",
                          "phase": "Final",
                          "round": 1,
                          "match": 1,
                          "group": null,
                          "startsAt": "2026-12-02T19:05:00.000Z",
                          "nepalDate": "2026-12-03",
                          "updatedAt": "2026-12-02T19:30:00.000Z",
                          "fixtureId": "10000000-0000-4000-8000-000000000006",
                          "publicationStatus": "official",
                          "publishedAt": "2026-12-02T19:15:00.000Z",
                          "entries": [
                            {
                              "entrantId": "10000000-0000-4000-8000-000000000009",
                              "name": "Example Athlete A",
                              "teamId": "team-a",
                              "teamName": "Example Delegation A",
                              "order": 1,
                              "rank": 1,
                              "result": "10.82 s",
                              "medal": "gold",
                              "outcome": null,
                              "metric": null
                            },
                            {
                              "entrantId": "10000000-0000-4000-8000-000000000010",
                              "name": "Example Athlete B",
                              "teamId": "team-b",
                              "teamName": "Example Delegation B",
                              "order": 2,
                              "rank": 1,
                              "result": "10.82 s",
                              "medal": "gold",
                              "outcome": null,
                              "metric": null
                            },
                            {
                              "entrantId": "10000000-0000-4000-8000-000000000011",
                              "name": "Example Athlete C",
                              "teamId": "team-c",
                              "teamName": "Example Delegation C",
                              "order": 3,
                              "rank": 3,
                              "result": "10.89 s",
                              "medal": "bronze",
                              "outcome": null,
                              "metric": null
                            }
                          ],
                          "winner": {
                            "entrantId": "10000000-0000-4000-8000-000000000009",
                            "name": "Example Athlete A",
                            "teamId": "team-a",
                            "teamName": "Example Delegation A",
                            "order": 1,
                            "rank": 1,
                            "result": "10.82 s",
                            "medal": "gold",
                            "outcome": null,
                            "metric": null
                          }
                        }
                      ],
                      "meta": {
                        "locale": "en",
                        "page": 1,
                        "pageSize": 25,
                        "total": 1,
                        "totalPages": 1,
                        "state": "published",
                        "updatedAt": "2026-12-02T19:30:00.000Z",
                        "counts": {
                          "allEvents": 1,
                          "byEvent": [
                            {
                              "eventId": "10000000-0000-4000-8000-000000000005",
                              "count": 1
                            }
                          ]
                        }
                      }
                    }
                  },
                  "qualifyingHeatWithoutMedals": {
                    "value": {
                      "data": [
                        {
                          "id": "10000000-0000-4000-8000-000000000006",
                          "editionId": "10000000-0000-4000-8000-000000000001",
                          "eventId": "10000000-0000-4000-8000-000000000005",
                          "sportId": "10000000-0000-4000-8000-000000000003",
                          "eventName": "Men's 100 m",
                          "sportName": "Athletics",
                          "entrantKind": "individual",
                          "title": "Men’s 100 m · Heat 1",
                          "phase": "Heats",
                          "round": 1,
                          "match": 1,
                          "group": "Heat 1",
                          "startsAt": "2026-12-02T19:05:00.000Z",
                          "nepalDate": "2026-12-03",
                          "updatedAt": "2026-12-02T19:30:00.000Z",
                          "fixtureId": "10000000-0000-4000-8000-000000000006",
                          "publicationStatus": "official",
                          "publishedAt": "2026-12-02T19:15:00.000Z",
                          "entries": [
                            {
                              "entrantId": "10000000-0000-4000-8000-000000000009",
                              "name": "Example Athlete A",
                              "teamId": "team-a",
                              "teamName": "Example Delegation A",
                              "order": 1,
                              "rank": 1,
                              "result": "10.82 s",
                              "medal": null,
                              "outcome": null,
                              "metric": 10.82
                            },
                            {
                              "entrantId": "10000000-0000-4000-8000-000000000010",
                              "name": "Example Athlete B",
                              "teamId": "team-b",
                              "teamName": "Example Delegation B",
                              "order": 2,
                              "rank": 2,
                              "result": "10.84 s",
                              "medal": null,
                              "outcome": null,
                              "metric": 10.84
                            },
                            {
                              "entrantId": "10000000-0000-4000-8000-000000000011",
                              "name": "Example Athlete C",
                              "teamId": "team-c",
                              "teamName": "Example Delegation C",
                              "order": 3,
                              "rank": null,
                              "result": null,
                              "medal": null,
                              "outcome": "DNS",
                              "metric": null
                            }
                          ],
                          "winner": {
                            "entrantId": "10000000-0000-4000-8000-000000000009",
                            "name": "Example Athlete A",
                            "teamId": "team-a",
                            "teamName": "Example Delegation A",
                            "order": 1,
                            "rank": 1,
                            "result": "10.82 s",
                            "medal": null,
                            "outcome": null,
                            "metric": 10.82
                          }
                        }
                      ],
                      "meta": {
                        "locale": "en",
                        "page": 1,
                        "pageSize": 25,
                        "total": 1,
                        "totalPages": 1,
                        "state": "published",
                        "updatedAt": "2026-12-02T19:30:00.000Z",
                        "counts": {
                          "allEvents": 1,
                          "byEvent": [
                            {
                              "eventId": "10000000-0000-4000-8000-000000000005",
                              "count": 1
                            }
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/OriginNotAllowed"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      },
      "head": {
        "operationId": "listResultsHead",
        "summary": "Check list official results",
        "description": "Checks authorization and filters with the same status and headers as GET. Returns no body.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Locale"
          },
          {
            "$ref": "#/components/parameters/EditionId"
          },
          {
            "$ref": "#/components/parameters/SportId"
          },
          {
            "$ref": "#/components/parameters/EventId"
          },
          {
            "$ref": "#/components/parameters/LatestView"
          },
          {
            "$ref": "#/components/parameters/Page"
          },
          {
            "$ref": "#/components/parameters/PageSize"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/SuccessHead"
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequestHead"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedHead"
          },
          "403": {
            "$ref": "#/components/responses/OriginNotAllowedHead"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundHead"
          },
          "429": {
            "$ref": "#/components/responses/RateLimitedHead"
          },
          "500": {
            "$ref": "#/components/responses/UnavailableHead"
          }
        }
      },
      "options": {
        "operationId": "listResultsPreflight",
        "summary": "Check cross-origin browser access",
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/EditionId"
          }
        ],
        "responses": {
          "204": {
            "$ref": "#/components/responses/CorsPreflight"
          },
          "403": {
            "$ref": "#/components/responses/OriginNotAllowed"
          }
        }
      }
    },
    "/editions/{editionId}/overview": {
      "get": {
        "operationId": "getOverview",
        "summary": "Get competition overview",
        "description": "Returns at most two upcoming fixtures and at most two latest official results in the selected scope, with the current medal publication.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Locale"
          },
          {
            "$ref": "#/components/parameters/EditionId"
          },
          {
            "$ref": "#/components/parameters/SportId"
          }
        ],
        "responses": {
          "200": {
            "description": "Published resource or an available empty resource.",
            "headers": {
              "X-Request-Id": {
                "description": "Request identifier for diagnosis.",
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "description": "Authenticated API responses use private, no-store.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Overview"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "preview": {
                    "value": {
                      "data": {
                        "upcomingFixtures": [],
                        "latestResults": [
                          {
                            "id": "10000000-0000-4000-8000-000000000006",
                            "editionId": "10000000-0000-4000-8000-000000000001",
                            "eventId": "10000000-0000-4000-8000-000000000005",
                            "sportId": "10000000-0000-4000-8000-000000000003",
                            "eventName": "Men's 100 m",
                            "sportName": "Athletics",
                            "entrantKind": "individual",
                            "title": "Men’s 100 m · Final",
                            "phase": "Final",
                            "round": 1,
                            "match": 1,
                            "group": null,
                            "startsAt": "2026-12-02T19:05:00.000Z",
                            "nepalDate": "2026-12-03",
                            "updatedAt": "2026-12-02T19:30:00.000Z",
                            "fixtureId": "10000000-0000-4000-8000-000000000006",
                            "publicationStatus": "official",
                            "publishedAt": "2026-12-02T19:15:00.000Z",
                            "entries": [
                              {
                                "entrantId": "10000000-0000-4000-8000-000000000009",
                                "name": "Example Athlete A",
                                "teamId": "team-a",
                                "teamName": "Example Delegation A",
                                "order": 1,
                                "rank": 1,
                                "result": "10.82 s",
                                "medal": "gold",
                                "outcome": null,
                                "metric": null
                              },
                              {
                                "entrantId": "10000000-0000-4000-8000-000000000010",
                                "name": "Example Athlete B",
                                "teamId": "team-b",
                                "teamName": "Example Delegation B",
                                "order": 2,
                                "rank": 1,
                                "result": "10.82 s",
                                "medal": "gold",
                                "outcome": null,
                                "metric": null
                              },
                              {
                                "entrantId": "10000000-0000-4000-8000-000000000011",
                                "name": "Example Athlete C",
                                "teamId": "team-c",
                                "teamName": "Example Delegation C",
                                "order": 3,
                                "rank": 3,
                                "result": "10.89 s",
                                "medal": "bronze",
                                "outcome": null,
                                "metric": null
                              }
                            ],
                            "winner": {
                              "entrantId": "10000000-0000-4000-8000-000000000009",
                              "name": "Example Athlete A",
                              "teamId": "team-a",
                              "teamName": "Example Delegation A",
                              "order": 1,
                              "rank": 1,
                              "result": "10.82 s",
                              "medal": "gold",
                              "outcome": null,
                              "metric": null
                            }
                          }
                        ],
                        "upcomingFixtureCount": 0,
                        "fixtureCount": 1,
                        "resultCount": 1,
                        "medals": {
                          "state": "published",
                          "snapshotId": "10000000-0000-4000-8000-000000000007",
                          "previousSnapshotId": "10000000-0000-4000-8000-000000000008",
                          "medalsUpdatedAt": "2026-12-02T19:30:00.000Z",
                          "previousSnapshotAt": "2026-12-01T16:00:00.000Z",
                          "overall": {
                            "scope": "overall",
                            "totals": {
                              "gold": 2,
                              "silver": 0,
                              "bronze": 1,
                              "total": 3
                            },
                            "rows": [
                              {
                                "teamId": "team-a",
                                "teamName": "Example Delegation A",
                                "gold": 1,
                                "silver": 0,
                                "bronze": 0,
                                "total": 1,
                                "rank": 1,
                                "previousRank": 4
                              },
                              {
                                "teamId": "team-b",
                                "teamName": "Example Delegation B",
                                "gold": 1,
                                "silver": 0,
                                "bronze": 0,
                                "total": 1,
                                "rank": 1,
                                "previousRank": 1
                              },
                              {
                                "teamId": "team-c",
                                "teamName": "Example Delegation C",
                                "gold": 0,
                                "silver": 0,
                                "bronze": 1,
                                "total": 1,
                                "rank": 3,
                                "previousRank": 2
                              },
                              {
                                "teamId": "team-d",
                                "teamName": "Example Delegation D",
                                "gold": 0,
                                "silver": 0,
                                "bronze": 0,
                                "total": 0,
                                "rank": null,
                                "previousRank": null
                              }
                            ]
                          },
                          "sports": [
                            {
                              "scope": "sport",
                              "sportId": "10000000-0000-4000-8000-000000000003",
                              "sportName": "Athletics",
                              "totals": {
                                "gold": 2,
                                "silver": 0,
                                "bronze": 1,
                                "total": 3
                              },
                              "rows": [
                                {
                                  "teamId": "team-a",
                                  "teamName": "Example Delegation A",
                                  "gold": 1,
                                  "silver": 0,
                                  "bronze": 0,
                                  "total": 1,
                                  "rank": 1,
                                  "previousRank": 4
                                },
                                {
                                  "teamId": "team-b",
                                  "teamName": "Example Delegation B",
                                  "gold": 1,
                                  "silver": 0,
                                  "bronze": 0,
                                  "total": 1,
                                  "rank": 1,
                                  "previousRank": 1
                                },
                                {
                                  "teamId": "team-c",
                                  "teamName": "Example Delegation C",
                                  "gold": 0,
                                  "silver": 0,
                                  "bronze": 1,
                                  "total": 1,
                                  "rank": 3,
                                  "previousRank": 2
                                },
                                {
                                  "teamId": "team-d",
                                  "teamName": "Example Delegation D",
                                  "gold": 0,
                                  "silver": 0,
                                  "bronze": 0,
                                  "total": 0,
                                  "rank": null,
                                  "previousRank": null
                                }
                              ]
                            },
                            {
                              "scope": "sport",
                              "sportId": "10000000-0000-4000-8000-000000000004",
                              "sportName": "Swimming",
                              "totals": {
                                "gold": 0,
                                "silver": 0,
                                "bronze": 0,
                                "total": 0
                              },
                              "rows": [
                                {
                                  "teamId": "team-a",
                                  "teamName": "Example Delegation A",
                                  "gold": 0,
                                  "silver": 0,
                                  "bronze": 0,
                                  "total": 0,
                                  "rank": null,
                                  "previousRank": null
                                },
                                {
                                  "teamId": "team-b",
                                  "teamName": "Example Delegation B",
                                  "gold": 0,
                                  "silver": 0,
                                  "bronze": 0,
                                  "total": 0,
                                  "rank": null,
                                  "previousRank": null
                                },
                                {
                                  "teamId": "team-c",
                                  "teamName": "Example Delegation C",
                                  "gold": 0,
                                  "silver": 0,
                                  "bronze": 0,
                                  "total": 0,
                                  "rank": null,
                                  "previousRank": null
                                },
                                {
                                  "teamId": "team-d",
                                  "teamName": "Example Delegation D",
                                  "gold": 0,
                                  "silver": 0,
                                  "bronze": 0,
                                  "total": 0,
                                  "rank": null,
                                  "previousRank": null
                                }
                              ]
                            }
                          ]
                        }
                      },
                      "meta": {
                        "locale": "en"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/OriginNotAllowed"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      },
      "head": {
        "operationId": "getOverviewHead",
        "summary": "Check get competition overview",
        "description": "Checks authorization and filters with the same status and headers as GET. Returns no body.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Locale"
          },
          {
            "$ref": "#/components/parameters/EditionId"
          },
          {
            "$ref": "#/components/parameters/SportId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/SuccessHead"
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequestHead"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedHead"
          },
          "403": {
            "$ref": "#/components/responses/OriginNotAllowedHead"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundHead"
          },
          "429": {
            "$ref": "#/components/responses/RateLimitedHead"
          },
          "500": {
            "$ref": "#/components/responses/UnavailableHead"
          }
        }
      },
      "options": {
        "operationId": "getOverviewPreflight",
        "summary": "Check cross-origin browser access",
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/EditionId"
          }
        ],
        "responses": {
          "204": {
            "$ref": "#/components/responses/CorsPreflight"
          },
          "403": {
            "$ref": "#/components/responses/OriginNotAllowed"
          }
        }
      }
    },
    "/editions/{editionId}/medals": {
      "get": {
        "operationId": "getMedals",
        "summary": "Get a medal publication",
        "description": "Returns the overall standings and all sport tables, or just the requested sport table alongside the overall standings. Use an edition snapshot to pin all views to the same publication.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Locale"
          },
          {
            "$ref": "#/components/parameters/EditionId"
          },
          {
            "$ref": "#/components/parameters/SportId"
          },
          {
            "$ref": "#/components/parameters/SnapshotId"
          }
        ],
        "responses": {
          "200": {
            "description": "Published resource or an available empty resource.",
            "headers": {
              "X-Request-Id": {
                "description": "Request identifier for diagnosis.",
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "description": "Authenticated API responses use private, no-store.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Medals"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "publishedTie": {
                    "value": {
                      "data": {
                        "state": "published",
                        "snapshotId": "10000000-0000-4000-8000-000000000007",
                        "previousSnapshotId": "10000000-0000-4000-8000-000000000008",
                        "medalsUpdatedAt": "2026-12-02T19:30:00.000Z",
                        "previousSnapshotAt": "2026-12-01T16:00:00.000Z",
                        "overall": {
                          "scope": "overall",
                          "totals": {
                            "gold": 2,
                            "silver": 0,
                            "bronze": 1,
                            "total": 3
                          },
                          "rows": [
                            {
                              "teamId": "team-a",
                              "teamName": "Example Delegation A",
                              "gold": 1,
                              "silver": 0,
                              "bronze": 0,
                              "total": 1,
                              "rank": 1,
                              "previousRank": 4
                            },
                            {
                              "teamId": "team-b",
                              "teamName": "Example Delegation B",
                              "gold": 1,
                              "silver": 0,
                              "bronze": 0,
                              "total": 1,
                              "rank": 1,
                              "previousRank": 1
                            },
                            {
                              "teamId": "team-c",
                              "teamName": "Example Delegation C",
                              "gold": 0,
                              "silver": 0,
                              "bronze": 1,
                              "total": 1,
                              "rank": 3,
                              "previousRank": 2
                            },
                            {
                              "teamId": "team-d",
                              "teamName": "Example Delegation D",
                              "gold": 0,
                              "silver": 0,
                              "bronze": 0,
                              "total": 0,
                              "rank": null,
                              "previousRank": null
                            }
                          ]
                        },
                        "sports": [
                          {
                            "scope": "sport",
                            "sportId": "10000000-0000-4000-8000-000000000003",
                            "sportName": "Athletics",
                            "totals": {
                              "gold": 2,
                              "silver": 0,
                              "bronze": 1,
                              "total": 3
                            },
                            "rows": [
                              {
                                "teamId": "team-a",
                                "teamName": "Example Delegation A",
                                "gold": 1,
                                "silver": 0,
                                "bronze": 0,
                                "total": 1,
                                "rank": 1,
                                "previousRank": 4
                              },
                              {
                                "teamId": "team-b",
                                "teamName": "Example Delegation B",
                                "gold": 1,
                                "silver": 0,
                                "bronze": 0,
                                "total": 1,
                                "rank": 1,
                                "previousRank": 1
                              },
                              {
                                "teamId": "team-c",
                                "teamName": "Example Delegation C",
                                "gold": 0,
                                "silver": 0,
                                "bronze": 1,
                                "total": 1,
                                "rank": 3,
                                "previousRank": 2
                              },
                              {
                                "teamId": "team-d",
                                "teamName": "Example Delegation D",
                                "gold": 0,
                                "silver": 0,
                                "bronze": 0,
                                "total": 0,
                                "rank": null,
                                "previousRank": null
                              }
                            ]
                          },
                          {
                            "scope": "sport",
                            "sportId": "10000000-0000-4000-8000-000000000004",
                            "sportName": "Swimming",
                            "totals": {
                              "gold": 0,
                              "silver": 0,
                              "bronze": 0,
                              "total": 0
                            },
                            "rows": [
                              {
                                "teamId": "team-a",
                                "teamName": "Example Delegation A",
                                "gold": 0,
                                "silver": 0,
                                "bronze": 0,
                                "total": 0,
                                "rank": null,
                                "previousRank": null
                              },
                              {
                                "teamId": "team-b",
                                "teamName": "Example Delegation B",
                                "gold": 0,
                                "silver": 0,
                                "bronze": 0,
                                "total": 0,
                                "rank": null,
                                "previousRank": null
                              },
                              {
                                "teamId": "team-c",
                                "teamName": "Example Delegation C",
                                "gold": 0,
                                "silver": 0,
                                "bronze": 0,
                                "total": 0,
                                "rank": null,
                                "previousRank": null
                              },
                              {
                                "teamId": "team-d",
                                "teamName": "Example Delegation D",
                                "gold": 0,
                                "silver": 0,
                                "bronze": 0,
                                "total": 0,
                                "rank": null,
                                "previousRank": null
                              }
                            ]
                          }
                        ]
                      },
                      "meta": {
                        "locale": "en"
                      }
                    }
                  },
                  "publishedZero": {
                    "value": {
                      "data": {
                        "state": "published",
                        "snapshotId": "10000000-0000-4000-8000-000000000012",
                        "previousSnapshotId": null,
                        "medalsUpdatedAt": "2026-11-30T10:00:00.000Z",
                        "previousSnapshotAt": null,
                        "overall": {
                          "scope": "overall",
                          "totals": {
                            "gold": 0,
                            "silver": 0,
                            "bronze": 0,
                            "total": 0
                          },
                          "rows": [
                            {
                              "teamId": "team-a",
                              "teamName": "Example Delegation A",
                              "gold": 0,
                              "silver": 0,
                              "bronze": 0,
                              "total": 0,
                              "rank": null,
                              "previousRank": null
                            },
                            {
                              "teamId": "team-b",
                              "teamName": "Example Delegation B",
                              "gold": 0,
                              "silver": 0,
                              "bronze": 0,
                              "total": 0,
                              "rank": null,
                              "previousRank": null
                            },
                            {
                              "teamId": "team-c",
                              "teamName": "Example Delegation C",
                              "gold": 0,
                              "silver": 0,
                              "bronze": 0,
                              "total": 0,
                              "rank": null,
                              "previousRank": null
                            },
                            {
                              "teamId": "team-d",
                              "teamName": "Example Delegation D",
                              "gold": 0,
                              "silver": 0,
                              "bronze": 0,
                              "total": 0,
                              "rank": null,
                              "previousRank": null
                            }
                          ]
                        },
                        "sports": [
                          {
                            "scope": "sport",
                            "sportId": "10000000-0000-4000-8000-000000000003",
                            "sportName": "Athletics",
                            "totals": {
                              "gold": 0,
                              "silver": 0,
                              "bronze": 0,
                              "total": 0
                            },
                            "rows": [
                              {
                                "teamId": "team-a",
                                "teamName": "Example Delegation A",
                                "gold": 0,
                                "silver": 0,
                                "bronze": 0,
                                "total": 0,
                                "rank": null,
                                "previousRank": null
                              },
                              {
                                "teamId": "team-b",
                                "teamName": "Example Delegation B",
                                "gold": 0,
                                "silver": 0,
                                "bronze": 0,
                                "total": 0,
                                "rank": null,
                                "previousRank": null
                              },
                              {
                                "teamId": "team-c",
                                "teamName": "Example Delegation C",
                                "gold": 0,
                                "silver": 0,
                                "bronze": 0,
                                "total": 0,
                                "rank": null,
                                "previousRank": null
                              },
                              {
                                "teamId": "team-d",
                                "teamName": "Example Delegation D",
                                "gold": 0,
                                "silver": 0,
                                "bronze": 0,
                                "total": 0,
                                "rank": null,
                                "previousRank": null
                              }
                            ]
                          },
                          {
                            "scope": "sport",
                            "sportId": "10000000-0000-4000-8000-000000000004",
                            "sportName": "Swimming",
                            "totals": {
                              "gold": 0,
                              "silver": 0,
                              "bronze": 0,
                              "total": 0
                            },
                            "rows": [
                              {
                                "teamId": "team-a",
                                "teamName": "Example Delegation A",
                                "gold": 0,
                                "silver": 0,
                                "bronze": 0,
                                "total": 0,
                                "rank": null,
                                "previousRank": null
                              },
                              {
                                "teamId": "team-b",
                                "teamName": "Example Delegation B",
                                "gold": 0,
                                "silver": 0,
                                "bronze": 0,
                                "total": 0,
                                "rank": null,
                                "previousRank": null
                              },
                              {
                                "teamId": "team-c",
                                "teamName": "Example Delegation C",
                                "gold": 0,
                                "silver": 0,
                                "bronze": 0,
                                "total": 0,
                                "rank": null,
                                "previousRank": null
                              },
                              {
                                "teamId": "team-d",
                                "teamName": "Example Delegation D",
                                "gold": 0,
                                "silver": 0,
                                "bronze": 0,
                                "total": 0,
                                "rank": null,
                                "previousRank": null
                              }
                            ]
                          }
                        ]
                      },
                      "meta": {
                        "locale": "en"
                      }
                    }
                  },
                  "unpublished": {
                    "value": {
                      "data": {
                        "state": "unpublished",
                        "snapshotId": null,
                        "previousSnapshotId": null,
                        "medalsUpdatedAt": null,
                        "previousSnapshotAt": null,
                        "overall": null,
                        "sports": []
                      },
                      "meta": {
                        "locale": "en"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/OriginNotAllowed"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      },
      "head": {
        "operationId": "getMedalsHead",
        "summary": "Check get a medal publication",
        "description": "Checks authorization and filters with the same status and headers as GET. Returns no body.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Locale"
          },
          {
            "$ref": "#/components/parameters/EditionId"
          },
          {
            "$ref": "#/components/parameters/SportId"
          },
          {
            "$ref": "#/components/parameters/SnapshotId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/SuccessHead"
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequestHead"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedHead"
          },
          "403": {
            "$ref": "#/components/responses/OriginNotAllowedHead"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundHead"
          },
          "429": {
            "$ref": "#/components/responses/RateLimitedHead"
          },
          "500": {
            "$ref": "#/components/responses/UnavailableHead"
          }
        }
      },
      "options": {
        "operationId": "getMedalsPreflight",
        "summary": "Check cross-origin browser access",
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/EditionId"
          }
        ],
        "responses": {
          "204": {
            "$ref": "#/components/responses/CorsPreflight"
          },
          "403": {
            "$ref": "#/components/responses/OriginNotAllowed"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "publicApiToken": {
        "type": "http",
        "scheme": "bearer",
        "description": "Opaque integration token created by a platform administrator."
      }
    },
    "parameters": {
      "Locale": {
        "name": "locale",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "enum": [
            "en",
            "ne"
          ],
          "default": "en"
        },
        "description": "Preferred label language. Where an alternative label is unavailable, the stored label is returned."
      },
      "EditionId": {
        "name": "editionId",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string",
          "format": "uuid",
          "description": "Stable opaque identifier. Use the value returned by the API."
        },
        "description": "Published Tournament OS edition identifier."
      },
      "SportId": {
        "name": "sportId",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "format": "uuid",
          "description": "Stable opaque identifier. Use the value returned by the API."
        },
        "description": "Limit to a sport in this edition."
      },
      "EventId": {
        "name": "eventId",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "format": "uuid",
          "description": "Stable opaque identifier. Use the value returned by the API."
        },
        "description": "Limit to an event in this edition and any supplied sport."
      },
      "SnapshotId": {
        "name": "snapshotId",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "format": "uuid",
          "description": "Stable opaque identifier. Use the value returned by the API."
        },
        "description": "Retrieve an immutable edition medal publication."
      },
      "Page": {
        "name": "page",
        "in": "query",
        "required": false,
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 1000000,
          "default": 1
        },
        "description": "One-based page number."
      },
      "PageSize": {
        "name": "pageSize",
        "in": "query",
        "required": false,
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100,
          "default": 25
        },
        "description": "Items per page."
      },
      "CmsTournamentId": {
        "name": "cmsTournamentId",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "description": "Exact external CMS identifier configured on the edition publication profile."
      },
      "Featured": {
        "name": "featured",
        "in": "query",
        "required": false,
        "schema": {
          "type": "boolean"
        },
        "description": "Filter by the configured feature flag."
      },
      "UpcomingView": {
        "name": "view",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "enum": [
            "upcoming"
          ]
        },
        "description": "Include only scheduled fixtures with a known future start."
      },
      "LatestView": {
        "name": "view",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "enum": [
            "latest"
          ]
        },
        "description": "Read the results sorted by first public publication."
      }
    },
    "responses": {
      "InvalidRequest": {
        "description": "Invalid identifier, filter, locale, or pagination parameter.",
        "headers": {
          "X-Request-Id": {
            "description": "Request identifier for diagnosis.",
            "schema": {
              "type": "string"
            }
          },
          "Cache-Control": {
            "description": "Authenticated API responses use private, no-store.",
            "schema": {
              "type": "string"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "InvalidRequestHead": {
        "description": "Invalid identifier, filter, locale, or pagination parameter.",
        "headers": {
          "X-Request-Id": {
            "description": "Request identifier for diagnosis.",
            "schema": {
              "type": "string"
            }
          },
          "Cache-Control": {
            "description": "Authenticated API responses use private, no-store.",
            "schema": {
              "type": "string"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Missing, invalid, expired, or revoked bearer token.",
        "headers": {
          "X-Request-Id": {
            "description": "Request identifier for diagnosis.",
            "schema": {
              "type": "string"
            }
          },
          "Cache-Control": {
            "description": "Authenticated API responses use private, no-store.",
            "schema": {
              "type": "string"
            }
          },
          "WWW-Authenticate": {
            "schema": {
              "type": "string",
              "example": "Bearer realm=\"Podium public API\""
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "UnauthorizedHead": {
        "description": "Missing, invalid, expired, or revoked bearer token.",
        "headers": {
          "X-Request-Id": {
            "description": "Request identifier for diagnosis.",
            "schema": {
              "type": "string"
            }
          },
          "Cache-Control": {
            "description": "Authenticated API responses use private, no-store.",
            "schema": {
              "type": "string"
            }
          },
          "WWW-Authenticate": {
            "schema": {
              "type": "string",
              "example": "Bearer realm=\"Podium public API\""
            }
          }
        }
      },
      "OriginNotAllowed": {
        "description": "The requesting browser origin is outside the deployment allowlist.",
        "headers": {
          "X-Request-Id": {
            "description": "Request identifier for diagnosis.",
            "schema": {
              "type": "string"
            }
          },
          "Cache-Control": {
            "description": "Authenticated API responses use private, no-store.",
            "schema": {
              "type": "string"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "OriginNotAllowedHead": {
        "description": "The requesting browser origin is outside the deployment allowlist.",
        "headers": {
          "X-Request-Id": {
            "description": "Request identifier for diagnosis.",
            "schema": {
              "type": "string"
            }
          },
          "Cache-Control": {
            "description": "Authenticated API responses use private, no-store.",
            "schema": {
              "type": "string"
            }
          }
        }
      },
      "NotFound": {
        "description": "The edition or related resource is unavailable in the token scope. Private editions use this status.",
        "headers": {
          "X-Request-Id": {
            "description": "Request identifier for diagnosis.",
            "schema": {
              "type": "string"
            }
          },
          "Cache-Control": {
            "description": "Authenticated API responses use private, no-store.",
            "schema": {
              "type": "string"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "NotFoundHead": {
        "description": "The edition or related resource is unavailable in the token scope. Private editions use this status.",
        "headers": {
          "X-Request-Id": {
            "description": "Request identifier for diagnosis.",
            "schema": {
              "type": "string"
            }
          },
          "Cache-Control": {
            "description": "Authenticated API responses use private, no-store.",
            "schema": {
              "type": "string"
            }
          }
        }
      },
      "RateLimited": {
        "description": "The token's current UTC minute budget is exhausted.",
        "headers": {
          "X-Request-Id": {
            "description": "Request identifier for diagnosis.",
            "schema": {
              "type": "string"
            }
          },
          "Cache-Control": {
            "description": "Authenticated API responses use private, no-store.",
            "schema": {
              "type": "string"
            }
          },
          "Retry-After": {
            "description": "Seconds until the next UTC minute.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 60
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "RateLimitedHead": {
        "description": "The token's current UTC minute budget is exhausted.",
        "headers": {
          "X-Request-Id": {
            "description": "Request identifier for diagnosis.",
            "schema": {
              "type": "string"
            }
          },
          "Cache-Control": {
            "description": "Authenticated API responses use private, no-store.",
            "schema": {
              "type": "string"
            }
          },
          "Retry-After": {
            "description": "Seconds until the next UTC minute.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 60
            }
          }
        }
      },
      "Unavailable": {
        "description": "The public data service could not finish the request.",
        "headers": {
          "X-Request-Id": {
            "description": "Request identifier for diagnosis.",
            "schema": {
              "type": "string"
            }
          },
          "Cache-Control": {
            "description": "Authenticated API responses use private, no-store.",
            "schema": {
              "type": "string"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "UnavailableHead": {
        "description": "The public data service could not finish the request.",
        "headers": {
          "X-Request-Id": {
            "description": "Request identifier for diagnosis.",
            "schema": {
              "type": "string"
            }
          },
          "Cache-Control": {
            "description": "Authenticated API responses use private, no-store.",
            "schema": {
              "type": "string"
            }
          }
        }
      },
      "SuccessHead": {
        "description": "The corresponding GET is available.",
        "headers": {
          "X-Request-Id": {
            "description": "Request identifier for diagnosis.",
            "schema": {
              "type": "string"
            }
          },
          "Cache-Control": {
            "description": "Authenticated API responses use private, no-store.",
            "schema": {
              "type": "string"
            }
          }
        }
      },
      "CorsPreflight": {
        "description": "Cross-origin preflight accepted.",
        "headers": {
          "X-Request-Id": {
            "description": "Request identifier for diagnosis.",
            "schema": {
              "type": "string"
            }
          },
          "Cache-Control": {
            "description": "Authenticated API responses use private, no-store.",
            "schema": {
              "type": "string"
            }
          },
          "Allow": {
            "schema": {
              "type": "string",
              "const": "GET, HEAD, OPTIONS"
            }
          },
          "Access-Control-Allow-Origin": {
            "schema": {
              "type": "string"
            }
          },
          "Access-Control-Allow-Methods": {
            "schema": {
              "type": "string",
              "const": "GET, HEAD, OPTIONS"
            }
          },
          "Access-Control-Allow-Headers": {
            "schema": {
              "type": "string",
              "const": "Authorization"
            }
          }
        }
      }
    },
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "invalid_request",
                  "unauthorized",
                  "origin_not_allowed",
                  "not_found",
                  "method_not_allowed",
                  "rate_limited",
                  "unavailable"
                ]
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false
      },
      "Meta": {
        "type": "object",
        "properties": {
          "locale": {
            "type": "string",
            "enum": [
              "en",
              "ne"
            ]
          }
        },
        "required": [
          "locale"
        ],
        "additionalProperties": false
      },
      "CompetitionListMeta": {
        "type": "object",
        "properties": {
          "locale": {
            "type": "string",
            "enum": [
              "en",
              "ne"
            ]
          },
          "page": {
            "type": "integer",
            "minimum": 1
          },
          "pageSize": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "total": {
            "type": "integer",
            "minimum": 0
          },
          "totalPages": {
            "type": "integer",
            "minimum": 0
          },
          "state": {
            "type": "string",
            "enum": [
              "published",
              "published_empty"
            ]
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "counts": {
            "type": "object",
            "properties": {
              "allEvents": {
                "type": "integer",
                "minimum": 0
              },
              "byEvent": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "eventId": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Stable opaque identifier. Use the value returned by the API."
                    },
                    "count": {
                      "type": "integer",
                      "minimum": 0
                    }
                  },
                  "required": [
                    "eventId",
                    "count"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "allEvents",
              "byEvent"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "locale",
          "page",
          "pageSize",
          "total",
          "totalPages",
          "state",
          "updatedAt",
          "counts"
        ],
        "additionalProperties": false
      },
      "CompetitionPageMeta": {
        "type": "object",
        "properties": {
          "locale": {
            "type": "string",
            "enum": [
              "en",
              "ne"
            ]
          },
          "page": {
            "type": "integer",
            "minimum": 1
          },
          "pageSize": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "total": {
            "type": "integer",
            "minimum": 0
          },
          "totalPages": {
            "type": "integer",
            "minimum": 0
          },
          "state": {
            "type": "string",
            "enum": [
              "published",
              "published_empty"
            ]
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "locale",
          "page",
          "pageSize",
          "total",
          "totalPages",
          "state",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "EventPageMeta": {
        "type": "object",
        "properties": {
          "locale": {
            "type": "string",
            "enum": [
              "en",
              "ne"
            ]
          },
          "page": {
            "type": "integer",
            "minimum": 1
          },
          "pageSize": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "total": {
            "type": "integer",
            "minimum": 0
          },
          "totalPages": {
            "type": "integer",
            "minimum": 0
          },
          "state": {
            "type": "string",
            "enum": [
              "published",
              "published_empty"
            ]
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "counts": {
            "type": "object",
            "properties": {
              "fixtures": {
                "type": "integer",
                "minimum": 0
              },
              "results": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "fixtures",
              "results"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "locale",
          "page",
          "pageSize",
          "total",
          "totalPages",
          "state",
          "updatedAt",
          "counts"
        ],
        "additionalProperties": false
      },
      "Edition": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Stable opaque identifier. Use the value returned by the API."
          },
          "editionId": {
            "type": "string",
            "format": "uuid",
            "description": "Stable opaque identifier. Use the value returned by the API."
          },
          "tournamentId": {
            "type": "string",
            "format": "uuid",
            "description": "Stable opaque identifier. Use the value returned by the API."
          },
          "cmsTournamentId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "editionNumber": {
            "type": "integer",
            "minimum": 1
          },
          "competitionType": {
            "type": "string",
            "enum": [
              "NATIONAL_GAMES",
              "OTHER"
            ]
          },
          "featured": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "location": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "startDate": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ]
          },
          "endDate": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ]
          },
          "logoUrl": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "mascotUrl": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "coverUrl": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "slogan": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "accentColor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "description": "Latest known Tournament OS identity or branding update. Null when the source has no applicable timestamp."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "editionId",
          "tournamentId",
          "cmsTournamentId",
          "editionNumber",
          "competitionType",
          "featured",
          "name",
          "location",
          "startDate",
          "endDate",
          "logoUrl",
          "mascotUrl",
          "coverUrl",
          "slogan",
          "color",
          "accentColor",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "Sport": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Stable opaque identifier. Use the value returned by the API."
          },
          "editionId": {
            "type": "string",
            "format": "uuid",
            "description": "Stable opaque identifier. Use the value returned by the API."
          },
          "name": {
            "type": "string"
          },
          "sortOrder": {
            "type": "integer",
            "minimum": 1
          },
          "logoUrl": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "eventCount": {
            "type": "integer",
            "minimum": 0
          },
          "fixtureCount": {
            "type": "integer",
            "minimum": 0
          },
          "resultCount": {
            "type": "integer",
            "minimum": 0
          },
          "animatedLogoUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "Uploaded or hosted animated logo. Use logoUrl as the poster and fallback."
          },
          "mascotVideoUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "Compatibility alias for animatedLogoUrl."
          }
        },
        "required": [
          "id",
          "editionId",
          "name",
          "sortOrder",
          "logoUrl",
          "animatedLogoUrl",
          "mascotVideoUrl",
          "eventCount",
          "fixtureCount",
          "resultCount"
        ],
        "additionalProperties": false
      },
      "Event": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Stable opaque identifier. Use the value returned by the API."
          },
          "sportId": {
            "type": "string",
            "format": "uuid",
            "description": "Stable opaque identifier. Use the value returned by the API."
          },
          "editionId": {
            "type": "string",
            "format": "uuid",
            "description": "Stable opaque identifier. Use the value returned by the API."
          },
          "name": {
            "type": "string"
          },
          "sourceId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "gender": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "entrantKind": {
            "type": "string",
            "enum": [
              "team",
              "individual"
            ]
          },
          "sortOrder": {
            "type": "integer",
            "minimum": 1
          },
          "fixtureCount": {
            "type": "integer",
            "minimum": 0
          },
          "resultCount": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "id",
          "sportId",
          "editionId",
          "name",
          "sourceId",
          "gender",
          "entrantKind",
          "sortOrder",
          "fixtureCount",
          "resultCount"
        ],
        "additionalProperties": false
      },
      "Team": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Opaque delegation identity unique within the edition."
          },
          "editionId": {
            "type": "string",
            "format": "uuid",
            "description": "Stable opaque identifier. Use the value returned by the API."
          },
          "name": {
            "type": "string"
          },
          "sortOrder": {
            "type": "integer",
            "minimum": 1
          }
        },
        "required": [
          "id",
          "editionId",
          "name",
          "sortOrder"
        ],
        "additionalProperties": false
      },
      "Participant": {
        "type": "object",
        "properties": {
          "entrantId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "displayName": {
            "type": "string"
          },
          "teamId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "teamName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "order": {
            "type": "integer",
            "minimum": 1
          }
        },
        "required": [
          "entrantId",
          "displayName",
          "teamId",
          "teamName",
          "order"
        ],
        "additionalProperties": false
      },
      "Fixture": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Stable opaque identifier. Use the value returned by the API."
          },
          "editionId": {
            "type": "string",
            "format": "uuid",
            "description": "Stable opaque identifier. Use the value returned by the API."
          },
          "eventId": {
            "type": "string",
            "format": "uuid",
            "description": "Stable opaque identifier. Use the value returned by the API."
          },
          "sportId": {
            "type": "string",
            "format": "uuid",
            "description": "Stable opaque identifier. Use the value returned by the API."
          },
          "eventName": {
            "type": "string"
          },
          "sportName": {
            "type": "string"
          },
          "entrantKind": {
            "type": "string",
            "enum": [
              "team",
              "individual"
            ]
          },
          "title": {
            "type": "string"
          },
          "phase": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "round": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "match": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "group": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "startsAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "nepalDate": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ]
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "scheduled",
              "time_pending",
              "live",
              "completed",
              "cancelled"
            ]
          },
          "venue": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "venueId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "participants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Participant"
            }
          }
        },
        "required": [
          "id",
          "editionId",
          "eventId",
          "sportId",
          "eventName",
          "sportName",
          "entrantKind",
          "title",
          "phase",
          "round",
          "match",
          "group",
          "startsAt",
          "nepalDate",
          "updatedAt",
          "status",
          "venue",
          "venueId",
          "participants"
        ],
        "additionalProperties": false
      },
      "ResultEntry": {
        "type": "object",
        "properties": {
          "entrantId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "teamId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "teamName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "order": {
            "type": "integer",
            "minimum": 1
          },
          "rank": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "result": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "medal": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "gold",
                  "silver",
                  "bronze"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "outcome": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "DNS",
                  "DNF",
                  "DSQ"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "metric": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "entrantId",
          "name",
          "teamId",
          "teamName",
          "order",
          "rank",
          "result",
          "medal",
          "outcome",
          "metric"
        ],
        "additionalProperties": false
      },
      "Result": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Stable opaque identifier. Use the value returned by the API."
          },
          "editionId": {
            "type": "string",
            "format": "uuid",
            "description": "Stable opaque identifier. Use the value returned by the API."
          },
          "eventId": {
            "type": "string",
            "format": "uuid",
            "description": "Stable opaque identifier. Use the value returned by the API."
          },
          "sportId": {
            "type": "string",
            "format": "uuid",
            "description": "Stable opaque identifier. Use the value returned by the API."
          },
          "eventName": {
            "type": "string"
          },
          "sportName": {
            "type": "string"
          },
          "entrantKind": {
            "type": "string",
            "enum": [
              "team",
              "individual"
            ]
          },
          "title": {
            "type": "string"
          },
          "phase": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "round": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "match": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "group": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "startsAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "nepalDate": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ]
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "fixtureId": {
            "type": "string",
            "format": "uuid",
            "description": "Stable opaque identifier. Use the value returned by the API."
          },
          "publicationStatus": {
            "type": "string",
            "enum": [
              "official"
            ]
          },
          "publishedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResultEntry"
            }
          },
          "winner": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ResultEntry"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "editionId",
          "eventId",
          "sportId",
          "eventName",
          "sportName",
          "entrantKind",
          "title",
          "phase",
          "round",
          "match",
          "group",
          "startsAt",
          "nepalDate",
          "updatedAt",
          "fixtureId",
          "publicationStatus",
          "publishedAt",
          "entries",
          "winner"
        ],
        "additionalProperties": false
      },
      "MedalCounts": {
        "type": "object",
        "properties": {
          "gold": {
            "type": "integer",
            "minimum": 0
          },
          "silver": {
            "type": "integer",
            "minimum": 0
          },
          "bronze": {
            "type": "integer",
            "minimum": 0
          },
          "total": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "gold",
          "silver",
          "bronze",
          "total"
        ],
        "additionalProperties": false
      },
      "MedalRow": {
        "type": "object",
        "properties": {
          "teamId": {
            "type": "string"
          },
          "teamName": {
            "type": "string"
          },
          "gold": {
            "type": "integer",
            "minimum": 0
          },
          "silver": {
            "type": "integer",
            "minimum": 0
          },
          "bronze": {
            "type": "integer",
            "minimum": 0
          },
          "total": {
            "type": "integer",
            "minimum": 0
          },
          "rank": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "previousRank": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "teamId",
          "teamName",
          "gold",
          "silver",
          "bronze",
          "total",
          "rank",
          "previousRank"
        ],
        "additionalProperties": false
      },
      "OverallMedalTable": {
        "type": "object",
        "properties": {
          "scope": {
            "type": "string",
            "enum": [
              "overall"
            ]
          },
          "totals": {
            "$ref": "#/components/schemas/MedalCounts"
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MedalRow"
            }
          }
        },
        "required": [
          "scope",
          "totals",
          "rows"
        ],
        "additionalProperties": false
      },
      "SportMedalTable": {
        "type": "object",
        "properties": {
          "scope": {
            "type": "string",
            "enum": [
              "sport"
            ]
          },
          "sportId": {
            "type": "string",
            "format": "uuid",
            "description": "Stable opaque identifier. Use the value returned by the API."
          },
          "sportName": {
            "type": "string"
          },
          "totals": {
            "$ref": "#/components/schemas/MedalCounts"
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MedalRow"
            }
          }
        },
        "required": [
          "scope",
          "sportId",
          "sportName",
          "totals",
          "rows"
        ],
        "additionalProperties": false
      },
      "PublishedMedals": {
        "type": "object",
        "properties": {
          "state": {
            "type": "string",
            "enum": [
              "published"
            ]
          },
          "snapshotId": {
            "type": "string",
            "format": "uuid",
            "description": "Stable opaque identifier. Use the value returned by the API."
          },
          "previousSnapshotId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "description": "Stable opaque identifier. Use the value returned by the API."
              },
              {
                "type": "null"
              }
            ]
          },
          "medalsUpdatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "previousSnapshotAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "overall": {
            "$ref": "#/components/schemas/OverallMedalTable"
          },
          "sports": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SportMedalTable"
            }
          }
        },
        "required": [
          "state",
          "snapshotId",
          "previousSnapshotId",
          "medalsUpdatedAt",
          "previousSnapshotAt",
          "overall",
          "sports"
        ],
        "additionalProperties": false
      },
      "UnpublishedMedals": {
        "type": "object",
        "properties": {
          "state": {
            "type": "string",
            "enum": [
              "unpublished"
            ]
          },
          "snapshotId": {
            "type": "null"
          },
          "previousSnapshotId": {
            "type": "null"
          },
          "medalsUpdatedAt": {
            "type": "null"
          },
          "previousSnapshotAt": {
            "type": "null"
          },
          "overall": {
            "type": "null"
          },
          "sports": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SportMedalTable"
            },
            "maxItems": 0
          }
        },
        "required": [
          "state",
          "snapshotId",
          "previousSnapshotId",
          "medalsUpdatedAt",
          "previousSnapshotAt",
          "overall",
          "sports"
        ],
        "additionalProperties": false
      },
      "Medals": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/PublishedMedals"
          },
          {
            "$ref": "#/components/schemas/UnpublishedMedals"
          }
        ]
      },
      "Overview": {
        "type": "object",
        "properties": {
          "upcomingFixtures": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Fixture"
            },
            "maxItems": 2
          },
          "latestResults": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Result"
            },
            "maxItems": 2
          },
          "upcomingFixtureCount": {
            "type": "integer",
            "minimum": 0
          },
          "fixtureCount": {
            "type": "integer",
            "minimum": 0
          },
          "resultCount": {
            "type": "integer",
            "minimum": 0
          },
          "medals": {
            "$ref": "#/components/schemas/Medals"
          }
        },
        "required": [
          "upcomingFixtures",
          "latestResults",
          "upcomingFixtureCount",
          "fixtureCount",
          "resultCount",
          "medals"
        ],
        "additionalProperties": false
      }
    }
  }
}
