From 79192bd7a6653b5e6f86a0883fed2642e0099335 Mon Sep 17 00:00:00 2001 From: Allan Joseph Date: Sat, 30 Nov 2024 14:17:52 +0530 Subject: [PATCH 1/2] document accuracy field in gamejson response --- doc/specs/schemas/GameUser.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/specs/schemas/GameUser.yaml b/doc/specs/schemas/GameUser.yaml index 818d852..7fd6055 100644 --- a/doc/specs/schemas/GameUser.yaml +++ b/doc/specs/schemas/GameUser.yaml @@ -23,6 +23,8 @@ properties: type: number acpl: type: number + accuracy: + type: number required: [inaccuracy, mistake, blunder, acpl] team: type: string From b749f125d336129ebf2be060ecf537511a823030 Mon Sep 17 00:00:00 2001 From: Allan Joseph Date: Sat, 30 Nov 2024 14:19:00 +0530 Subject: [PATCH 2/2] clarify that accuracy is only available in json --- doc/specs/tags/arenatournaments/api-tournament-id-games.yaml | 2 +- doc/specs/tags/bulkpairings/api-bulk-pairing-id-games.yaml | 2 +- doc/specs/tags/games/api-games-export-_ids.yaml | 2 +- doc/specs/tags/games/api-games-user-username.yaml | 2 +- doc/specs/tags/games/api-user-username-current-game.yaml | 2 +- doc/specs/tags/games/game-export-gameId.yaml | 2 +- doc/specs/tags/swisstournaments/api-swiss-id-games.yaml | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/specs/tags/arenatournaments/api-tournament-id-games.yaml b/doc/specs/tags/arenatournaments/api-tournament-id-games.yaml index 01d95cd..49e7de4 100644 --- a/doc/specs/tags/arenatournaments/api-tournament-id-games.yaml +++ b/doc/specs/tags/arenatournaments/api-tournament-id-games.yaml @@ -61,7 +61,7 @@ get: - in: query name: accuracy description: | - Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available. + Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available. Only available in JSON. schema: type: boolean default: false diff --git a/doc/specs/tags/bulkpairings/api-bulk-pairing-id-games.yaml b/doc/specs/tags/bulkpairings/api-bulk-pairing-id-games.yaml index 57cb9f4..6aea66a 100644 --- a/doc/specs/tags/bulkpairings/api-bulk-pairing-id-games.yaml +++ b/doc/specs/tags/bulkpairings/api-bulk-pairing-id-games.yaml @@ -54,7 +54,7 @@ get: - in: query name: accuracy description: | - Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available. + Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available. Only available in JSON. schema: type: boolean default: false diff --git a/doc/specs/tags/games/api-games-export-_ids.yaml b/doc/specs/tags/games/api-games-export-_ids.yaml index 417e8e9..363a849 100644 --- a/doc/specs/tags/games/api-games-export-_ids.yaml +++ b/doc/specs/tags/games/api-games-export-_ids.yaml @@ -58,7 +58,7 @@ post: - in: query name: accuracy description: | - Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available. + Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available. Only available in JSON. schema: type: boolean default: false diff --git a/doc/specs/tags/games/api-games-user-username.yaml b/doc/specs/tags/games/api-games-user-username.yaml index 0832581..7d63396 100644 --- a/doc/specs/tags/games/api-games-user-username.yaml +++ b/doc/specs/tags/games/api-games-user-username.yaml @@ -113,7 +113,7 @@ get: - in: query name: accuracy description: | - Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available. + Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available. Only available in JSON. schema: type: boolean default: false diff --git a/doc/specs/tags/games/api-user-username-current-game.yaml b/doc/specs/tags/games/api-user-username-current-game.yaml index 826aeb0..5d24a00 100644 --- a/doc/specs/tags/games/api-user-username-current-game.yaml +++ b/doc/specs/tags/games/api-user-username-current-game.yaml @@ -53,7 +53,7 @@ get: - in: query name: accuracy description: | - Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available. + Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available. Only available in JSON. schema: type: boolean default: false diff --git a/doc/specs/tags/games/game-export-gameId.yaml b/doc/specs/tags/games/game-export-gameId.yaml index 5614868..cc41761 100644 --- a/doc/specs/tags/games/game-export-gameId.yaml +++ b/doc/specs/tags/games/game-export-gameId.yaml @@ -53,7 +53,7 @@ get: - in: query name: accuracy description: | - Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available. + Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available. Only available in JSON. schema: type: boolean default: false diff --git a/doc/specs/tags/swisstournaments/api-swiss-id-games.yaml b/doc/specs/tags/swisstournaments/api-swiss-id-games.yaml index 0865508..6073a67 100644 --- a/doc/specs/tags/swisstournaments/api-swiss-id-games.yaml +++ b/doc/specs/tags/swisstournaments/api-swiss-id-games.yaml @@ -61,7 +61,7 @@ get: - in: query name: accuracy description: | - Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available. + Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available. Only available in JSON. schema: type: boolean default: false