Open alireza1219 opened 6 months ago
While handling the response errors on the frontend, I've realized that DRF generates a nonstandard response whenever a validation error occurs!
I could find some resources that might be helpful: https://drf-standardized-errors.readthedocs.io/en/latest/quickstart.html https://medium.com/@ali.iqbal028/fixing-the-worst-thing-about-django-rest-framework-982096212156
This needs more review before being applied! I believe that it will negatively affect the API's testcases.
Here's a screenshot for more clarity.
While handling the response errors on the frontend, I've realized that DRF generates a nonstandard response whenever a validation error occurs!
I could find some resources that might be helpful: https://drf-standardized-errors.readthedocs.io/en/latest/quickstart.html https://medium.com/@ali.iqbal028/fixing-the-worst-thing-about-django-rest-framework-982096212156