From 4e8c94b076a6844feb9147884f81eb62008a0289 Mon Sep 17 00:00:00 2001 From: Trevor Fitzgerald Date: Sat, 5 Oct 2024 08:57:39 -0400 Subject: [PATCH] Update broadcast tour schema + add timezone --- doc/specs/schemas/BroadcastForm.yaml | 9 ++++++++- doc/specs/schemas/BroadcastTour.yaml | 24 ++++++++++++++++++++++-- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/doc/specs/schemas/BroadcastForm.yaml b/doc/specs/schemas/BroadcastForm.yaml index 3b6d8de..2ba4045 100644 --- a/doc/specs/schemas/BroadcastForm.yaml +++ b/doc/specs/schemas/BroadcastForm.yaml @@ -30,6 +30,11 @@ properties: enum: [standard, rapid, blitz] description: | FIDE rating category. Which FIDE ratings to use + info.timeZone: + type: string + description: | + Timezone of the tournament. Example: `America/New_York`. + See [list of possible timezone identifiers](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) for more. info.players: type: string maxLength: 120 @@ -37,10 +42,12 @@ properties: Mention up to 4 of the best players participating. info.website: type: string + format: uri description: | - Official Website. External website URL + Official website. External website URL info.standings: type: string + format: uri description: | Official Standings. External website URL, e.g. chess-results.com, info64.org markdown: diff --git a/doc/specs/schemas/BroadcastTour.yaml b/doc/specs/schemas/BroadcastTour.yaml index 65a5af2..c9ac9f0 100644 --- a/doc/specs/schemas/BroadcastTour.yaml +++ b/doc/specs/schemas/BroadcastTour.yaml @@ -21,15 +21,35 @@ properties: type: object description: "Additional display information about the tournament" properties: - format: + website: type: string - description: "Tournament format" + format: uri + description: "Official website. External website URL" players: type: string description: "Featured players" + location: + type: string + description: "Tournament location" tc: type: string description: "Time control" + fideTc: + type: string + enum: [standard, rapid, blitz] + description: "FIDE rating category" + timeZone: + type: string + description: | + Timezone of the tournament. Example: `America/New_York`. + See [list of possible timezone identifiers](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) for more. + standings: + type: string + format: uri + description: "Official standings website. External website URL" + format: + type: string + description: "Tournament format" tier: type: number description: "Used to designate featured tournaments on Lichess"