Skip to content

Commit 079bf0a

Browse files
ci: update api (#12)
Co-authored-by: CI <ci@rman.dev>
1 parent 7233884 commit 079bf0a

23 files changed

Lines changed: 214 additions & 32 deletions

specs/lichess-api.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: "3.1.0"
22
info:
3-
version: 2.0.116
3+
version: 2.0.119
44
title: Lichess.org API reference
55
contact:
66
name: "Lichess.org API"
@@ -500,6 +500,9 @@ paths:
500500
/broadcast/{broadcastTournamentId}/players/{playerId}:
501501
$ref: "./tags/broadcasts/broadcast-broadcastTournamentId-players-playerId.yaml"
502502

503+
/broadcast/{broadcastTournamentId}/teams/standings:
504+
$ref: "./tags/broadcasts/broadcast-broadcastTournamentId-teams-standings.yaml"
505+
503506
/broadcast/{broadcastTournamentId}/edit:
504507
$ref: "./tags/broadcasts/broadcast-broadcastTournamentId-edit.yaml"
505508

specs/schemas/BroadcastForm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ properties:
2525
description: |
2626
Time control.
2727
Example: `"Classical" or "Rapid" or "Rapid & Blitz"`
28-
info.fideTc:
28+
info.fideTC:
2929
$ref: "./FideTimeControl.yaml"
3030
info.timeZone:
3131
type: string

specs/schemas/BroadcastGameEntry.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@ properties:
1212
color:
1313
$ref: "./GameColor.yaml"
1414
points:
15-
type: string
16-
enum:
17-
- "1"
18-
- "1/2"
19-
- "0"
15+
$ref: "./BroadcastPointStr.yaml"
2016
customPoints:
2117
$ref: "./BroadcastCustomPoints.yaml"
2218
ratingDiff:

specs/schemas/BroadcastPlayerEntry.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,34 @@ allOf:
1111
ratingDiff:
1212
type: integer
1313
example: -5
14+
deprecated: true
15+
ratingDiffs:
16+
description: |
17+
Rating differences by FIDE time control.
18+
allOf:
19+
- $ref: "./StatByFideTC.yaml"
20+
example:
21+
rapid: -5
22+
blitz: 10
23+
ratingsMap:
24+
description: |
25+
Player's ratings at the time of the tournament.
26+
allOf:
27+
- $ref: "./StatByFideTC.yaml"
28+
example:
29+
rapid: 2500
30+
blitz: 2450
1431
performance:
1532
type: integer
1633
example: 2138
34+
deprecated: true
35+
performances:
36+
description: |
37+
Performance ratings by FIDE time control.
38+
allOf:
39+
- $ref: "./StatByFideTC.yaml"
40+
example:
41+
standard: 2138
1742
tiebreaks:
1843
type: array
1944
maxItems: 5

specs/schemas/BroadcastPlayerEntryWithFideAndGames.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,9 @@ allOf:
99
type: integer
1010
description: Year of birth
1111
ratings:
12-
type: object
13-
properties:
14-
standard:
15-
type: integer
16-
rapid:
17-
type: integer
18-
blitz:
19-
type: integer
12+
description: Player's current ratings from the latest FIDE rating list.
13+
allOf:
14+
- $ref: "./StatByFideTC.yaml"
2015
games:
2116
type: array
2217
description: List of games played by the player in the broadcast tournament
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
type: string
2+
enum:
3+
- "1"
4+
- "1/2"
5+
- "0"
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
properties:
2+
name:
3+
type: string
4+
description: "The name of the team"
5+
mp:
6+
type: number
7+
description: "Total match points scored"
8+
gp:
9+
type: number
10+
description: "Total game points scored"
11+
averageRating:
12+
type: integer
13+
description: "The average rating of the team's players"
14+
matches:
15+
type: array
16+
items:
17+
$ref: "./BroadcastTeamPOVMatchEntry.yaml"
18+
players:
19+
type: array
20+
description: "Players who have played for the team and their overall score"
21+
items:
22+
$ref: "./BroadcastPlayerEntry.yaml"
23+
required:
24+
- name
25+
- mp
26+
- gp
27+
- matches
28+
- players
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
type: object
2+
properties:
3+
roundId:
4+
type: string
5+
opponent:
6+
type: string
7+
description: "The name of the opposing team"
8+
mp:
9+
type: number
10+
description: "Match points scored in this match"
11+
gp:
12+
type: number
13+
description: "Game points scored in this match"
14+
points:
15+
$ref: "./BroadcastPointStr.yaml"
16+
required:
17+
- roundId
18+
- opponent

specs/schemas/BroadcastTour.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@ properties:
3636
tc:
3737
type: string
3838
description: "Time control"
39-
fideTc:
40-
type: string
41-
enum: [standard, rapid, blitz]
39+
fideTC:
4240
description: "FIDE rating category"
41+
$ref: "./FideTimeControl.yaml"
4342
timeZone:
4443
type: string
4544
description: |
@@ -61,8 +60,6 @@ properties:
6160
description:
6261
type: string
6362
description: "Full tournament description in markdown format, or in HTML if the html=1 query parameter is set."
64-
leaderboard:
65-
type: boolean
6663
teamTable:
6764
type: boolean
6865
url:

specs/schemas/StatByFideTC.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
type: object
2+
properties:
3+
standard:
4+
type: integer
5+
rapid:
6+
type: integer
7+
blitz:
8+
type: integer

0 commit comments

Comments
 (0)