Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API: properly document error types #869

Open
Pikrass opened this issue Sep 27, 2024 · 0 comments
Open

API: properly document error types #869

Pikrass opened this issue Sep 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Pikrass
Copy link

Pikrass commented Sep 27, 2024

Exact URL where the bug happened

https://lishogi.org/api/challenge/open

Steps to reproduce the bug

Make a request while forgetting a required parameter

What did you expect to happen?

The documentation says the output should be an object of the form: {"error": "simple string"}.

What happened instead?

This is the output:

{
	"error": {
		"clock.increment": ["This field is required"]
	}
}
@Pikrass Pikrass added the bug Something isn't working label Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant