You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a user passes an invalid weapon choice, I want a clear error message so the user can know what their options for weapons are as opposed to an enum choice.
Expected Results:
{
"error_message": "You entered the weapon choice of "ax". You can only choose from "ROCK, PAPER, or SCISSORS as a weapon".
}
Actual Results:
Error message doesn't clearly express how I can provide a correct request.
"detail": [
{
"type": "enum",
"loc": [
"body",
"choice"
],
"msg": "Input should be 1, 2 or 3",
"input": "ax",
"ctx": {
"expected": "1, 2 or 3"
}
}
]
}
Summary:
When a user passes an invalid weapon choice, I want a clear error message so the user can know what their options for weapons are as opposed to an enum choice.
Expected Results:
Actual Results:
Error message doesn't clearly express how I can provide a correct request.
Steps to Reproduce:
Endpoint: http://localhost:8080/api/play
Method: POST
Request Body:
Environments:
locally via docker
The text was updated successfully, but these errors were encountered: