Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/specs/examples/broadcasts-createBroadcastRound.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"createdAt": 1745619386270,
"ongoing": true,
"startsAt": 1745619386270,
"rated": true,
"url": "https://lichess.org/broadcast/knight-invitational/final-round/6j92xrwH"
},
"tour": {
Expand Down
1 change: 1 addition & 0 deletions doc/specs/examples/broadcasts-getBroadcastRound.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"createdAt": 1745619386270,
"ongoing": true,
"startsAt": 1745619386270,
"rated": true,
"url": "https://lichess.org/broadcast/knight-invitational-2/final-round/6j92xrwH"
},
"tour": {
Expand Down
4 changes: 4 additions & 0 deletions doc/specs/examples/broadcasts-getBroadcastTournament.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"createdAt": 1745619386133,
"ongoing": true,
"startsAt": 1745622986125,
"rated": true,
"url": "https://lichess.org/broadcast/knight-invitational/round-1/lXnKRxIP"
},
{
Expand All @@ -26,6 +27,7 @@
"createdAt": 1745619386242,
"ongoing": true,
"startsAt": 1745626586125,
"rated": true,
"url": "https://lichess.org/broadcast/knight-invitational/round-2/7QBlwdN3"
},
{
Expand All @@ -35,6 +37,7 @@
"createdAt": 1745619386257,
"ongoing": true,
"startsAt": 1745630186125,
"rated": true,
"url": "https://lichess.org/broadcast/knight-invitational/round-3/Evrjw8XS"
},
{
Expand All @@ -44,6 +47,7 @@
"createdAt": 1745619386270,
"ongoing": true,
"startsAt": 1745619386270,
"rated": true,
"url": "https://lichess.org/broadcast/knight-invitational/final-round/6j92xrwH"
}
],
Expand Down
4 changes: 4 additions & 0 deletions doc/specs/examples/broadcasts-getOfficialBroadcasts.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"createdAt": 1746738601488,
"ongoing": true,
"startsAt": 1746742201434,
"rated": true,
"url": "https://lichess.org/broadcast/knight-invitational/round-1/eJLgkG7n"
},
{
Expand All @@ -26,6 +27,7 @@
"createdAt": 1746738601640,
"ongoing": true,
"startsAt": 1746745801434,
"rated": true,
"url": "https://lichess.org/broadcast/knight-invitational/round-2/97ILZHjQ"
},
{
Expand All @@ -35,6 +37,7 @@
"createdAt": 1746738601663,
"ongoing": true,
"startsAt": 1746749401434,
"rated": true,
"url": "https://lichess.org/broadcast/knight-invitational/round-3/SqzHhD4p"
},
{
Expand All @@ -44,6 +47,7 @@
"createdAt": 1746738601684,
"ongoing": true,
"startsAt": 1746738601684,
"rated": true,
"url": "https://lichess.org/broadcast/knight-invitational/final-round/6qYaFbEv"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"createdAt": 1745619386133,
"ongoing": true,
"startsAt": 1745622986125,
"rated": true,
"url": "https://lichess.org/broadcast/knight-invitational/round-1/lXnKRxIP"
}
}
Expand Down
1 change: 1 addition & 0 deletions doc/specs/examples/broadcasts-getYourBroadcastRounds.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"createdAt": 1745619386270,
"ongoing": true,
"startsAt": 1745619386270,
"rated": true,
"url": "https://lichess.org/broadcast/knight-invitational-2/final-round-2/6j92xrwH"
},
"tour": {
Expand Down
1 change: 1 addition & 0 deletions doc/specs/examples/broadcasts-searchBroadcasts.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"createdAt": 1746738601684,
"ongoing": true,
"startsAt": 1746738601684,
"rated": true,
"url": "https://lichess.org/broadcast/knight-invitational/final-round/6qYaFbEv"
}
}
Expand Down
1 change: 1 addition & 0 deletions doc/specs/examples/broadcasts-updateBroadcastRound.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"createdAt": 1745619386270,
"ongoing": true,
"startsAt": 1745619386270,
"rated": true,
"url": "https://lichess.org/broadcast/knight-invitational-2/final-round-2/6j92xrwH"
},
"tour": {
Expand Down
14 changes: 14 additions & 0 deletions doc/specs/schemas/BroadcastCustomPoints.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
type: object
properties:
win:
type: number
minimum: 0.0
maximum: 10.0
draw:
type: number
minimum: 0.0
maximum: 10.0

required:
- win
- draw
13 changes: 13 additions & 0 deletions doc/specs/schemas/BroadcastCustomScoring.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
type: object
description: Scoring overrides for wins or draws.
properties:
white:
type: object
$ref: "./BroadcastCustomPoints.yaml"
black:
type: object
$ref: "./BroadcastCustomPoints.yaml"

required:
- white
- black
7 changes: 7 additions & 0 deletions doc/specs/schemas/BroadcastRoundForm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,13 @@ allOf:
description: |
Lichess can usually detect the round status, but you can also set it manually if needed.
default: new
rated:
type: boolean
default: true
description: "Whether the round is used when calculating players' rating changes."
customScoring:
type: object
$ref: "./BroadcastCustomScoring.yaml"
period:
type: integer
description: |
Expand Down
7 changes: 7 additions & 0 deletions doc/specs/schemas/BroadcastRoundInfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ properties:
createdAt:
type: integer
format: int64
rated:
type: boolean
description: "Whether the round is used for rating calculations"
ongoing:
type: boolean
startsAt:
Expand All @@ -29,10 +32,14 @@ properties:
delay:
type: integer
format: int64
customScoring:
type: object
$ref: "./BroadcastCustomScoring.yaml"

required:
- id
- name
- slug
- url
- createdAt
- rated