Skip to content

Commit

Permalink
Broadcast schema updates
Browse files Browse the repository at this point in the history
  • Loading branch information
fitztrev committed Jul 4, 2024
1 parent c763c03 commit 4e2bc96
Show file tree
Hide file tree
Showing 5 changed files with 528 additions and 397 deletions.
4 changes: 2 additions & 2 deletions doc/specs/schemas/BroadcastByUser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ type: object
properties:
tour:
$ref: './BroadcastTour.yaml'
lastRound:
round:
$ref: './BroadcastRoundInfo.yaml'

required:
- tour
- lastRound
- round
24 changes: 21 additions & 3 deletions doc/specs/schemas/BroadcastTour.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,29 @@ properties:
type: string
slug:
type: string
description:
type: string
createdAt:
type: number
example: 1722169800000
dates:
type: array
items:
type: number
description: "Start and end dates of the tournament, as Unix timestamps in milliseconds"
maxItems: 2
example: [1722169800000, 1722666600000]
info:
type: object
description: "Additional display information about the tournament"
properties:
format:
type: string
description: "Tournament format"
players:
type: string
description: "Featured players"
tc:
type: string
description: "Time control"
tier:
type: number
description: "Used to designate featured tournaments on Lichess"
Expand All @@ -30,6 +49,5 @@ required:
- id
- name
- slug
- description
- createdAt
- url
2 changes: 1 addition & 1 deletion doc/specs/schemas/BroadcastWithLastRound.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ properties:
type: string
tour:
$ref: "./BroadcastTour.yaml"
lastRound:
round:
$ref: "./BroadcastRoundInfo.yaml"
Loading

0 comments on commit 4e2bc96

Please sign in to comment.