-
-
Notifications
You must be signed in to change notification settings - Fork 161
Closed
Description
declineReasonKey in ChallengeDeclinedJson are camel-cased, but in actual api-response they are not
Either api returns it in incorrect casing or I I've done it in incorrect casing in the docs
{
"type": "challengeDeclined",
"challenge": {
"id": "iVBqQYx7",
"url": "https://lichess.org/iVBqQYx7",
"status": "declined",
"challenger": {
"id": "anishchenko_roman",
"name": "Anishchenko_Roman",
"rating": 1311,
"title": None,
"provisional": True,
"flair": "people.brain",
"online": True,
"lag": 4,
},
"destUser": {
"id": "gameromanbot",
"name": "GameRoManBot",
"rating": 1500,
"title": "BOT",
"provisional": True,
"flair": "smileys.robot",
"online": True,
},
"variant": {"key": "standard", "name": "Standard", "short": "Std"},
"rated": False,
"speed": "ultraBullet",
"timeControl": {"type": "clock", "limit": 15, "increment": 0, "show": "¼+0"},
"color": "random",
"finalColor": "black",
"perf": {"icon": "\ue059", "name": "UltraBullet"},
"declineReason": "This time control is too fast for me, please challenge again with a slower game.",
"declineReasonKey": "toofast",
},
}api/doc/specs/schemas/ChallengeDeclinedJson.yaml
Lines 7 to 21 in 1500799
| declineReasonKey: | |
| type: string | |
| description: Untranslated, computer-matchable reason why the challenge was declined. | |
| enum: | |
| - generic | |
| - later | |
| - tooFast | |
| - tooSlow | |
| - timeControl | |
| - rated | |
| - casual | |
| - standard | |
| - variant | |
| - noBot | |
| - onlyBot |
Metadata
Metadata
Assignees
Labels
No labels