drf-standardized-errors
drf-standardized-errors copied to clipboard
ExceptionFormatter does not show in the drf-spectucalar
https://drf-standardized-errors.readthedocs.io/en/latest/customization.html#change-the-format-of-the-error-response
I defined my formatter and it actually responds when I make a request, but the schema in the swagger is displayed as the default one, and not my custom formatter
how do I fix this?
you'll need to follow the corresponding example for ensuring the new error response format is reflected in your API schema. https://drf-standardized-errors.readthedocs.io/en/latest/openapi.html#custom-error-format
thanks