lichess-org / api

Lichess API documentation and examples
https://lichess.org/api
GNU Affero General Public License v3.0
428 stars 142 forks source link

Add OAuthError schema and reference it in the doc of `token` endpoint #191

Closed thenlevy closed 2 years ago

thenlevy commented 2 years ago

The 400 response of api/token contains two fields: error and error_description. Currently, only the error field in mentioned in the docs but the error_description field may contain usefull information for debugging.

This PR creates a new schema for errors with an error_description field and use it in the documentation of the api/token endpoint