Implement API Errors based on new specs #221
Labels
[ backend /
blocking
This Issue interrupted the progress of an other
feature
Functionality or significant enhancement for the project
Blocking
Problem
We should not return error messages in a different structure for
api/
(our custom routes) than it is being returned inauth/
(djoser).Solution
We preferably need to return errors in one single coherent format.
So we either reproduce the same structure as how djoser handles errors, or we override djoser's
https://www.django-rest-framework.org/api-guide/exceptions/#custom-exception-handling
Integration with drf-spectacular
https://drf-standardized-errors.readthedocs.io/en/latest/openapi.html
Based on:
We should override djoser's errors
The text was updated successfully, but these errors were encountered: