Lichess API documentation and examples
GNU Affero General Public License v3.0
417
stars
140
forks
source link
`/account/preferences` soundSet enum returns an upper-case value instead of a lower-case one as the doc states, for first-time accounts #233
Closed
alexrintt closed 1 year ago
https://lichess.org/api#tag/Account/operation/account.
How to reproduce
curl --request GET --url https://lichess.org/api/account/preferences --header "Authorization: Bearer <your-personal-access-token-here>"
.prefs.soundSet
key.If you update your preference to some other soundKey enum option and set again to "standard", you will see that the enum key will be fixed.
Note: use this token:
lip_cgTTCykZg0App0jTJa9o
to test the 3. step without needing to create a new acc, it haspreferences:read
scope.From: https://lichess.org/api#tag/Account/operation/account:
Tried to find the controller that is causing this issue, but I don't know Scala, so I could only try to understand the semantics of the code: