This pull request updates the GameJson struct for exporting games by user. This change fixes the analysis field, which is supposed to be Array of objects (GameMoveAnalysis) as stated in the Lichess API.
Changes Made
Modified the GameJson.analysis field in src/model/games/mod.rs to Option<Vec<GameMoveAnalysis>>.
Added missing data to the test file tests/data/response/game_json.json.
Description
This pull request updates the GameJson struct for exporting games by user. This change fixes the
analysis
field, which is supposed to beArray of objects (GameMoveAnalysis)
as stated in the Lichess API.Changes Made
GameJson.analysis
field in src/model/games/mod.rs toOption<Vec<GameMoveAnalysis>>
.tests/data/response/game_json.json
.