ghazi-git

Results 13 comments of ghazi-git

> What is the implication of the second option, if we remove SERVERS? Is it just using the current host? yes, it will use the current host. Sample request when...

@tfranzel I created [drf-standardized-errors](https://github.com/ghazi-git/drf-standardized-errors) which is a custom exception handler that returns the [same error response format for 4XX and 5XX status codes](https://drf-standardized-errors.readthedocs.io/en/latest/error_response.html#error-response-format). The package [integrates with drf-spectatcular](https://drf-standardized-errors.readthedocs.io/en/latest/openapi.html) to automatically...

I was testing gitlint and thought I'd check this bug given it's easy to reproduce. Here's what I found out (based on [this stackoverflow question](https://stackoverflow.com/questions/25642746/how-do-i-pipe-unicode-into-a-native-application-in-powershell)): minimal code to reproduce on...

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

Honestly, the main reason for making the handler easy to customize is allowing everyone to change the format to suit their requirements. Out of the box, I tried to have...

If you're looking to customize the output of the exception handler then a [custom exception formatter](https://drf-standardized-errors.readthedocs.io/en/latest/customization.html#change-the-format-of-the-error-response) is what you're looking for. Once you copy that example as is and cause...

@sachingaikwad123, this is already possible as long as this is not a validation error raised in a serializer. First, define your custom exception ```python from rest_framework.exceptions import APIException class ObjectAlreadyExistsError(APIException):...

To add **metadata to validation-errors-raised-outside-the-serializer and other errors**, a similar approach should work ```python class EmployeeCreateView(CreateAPIView): ... def create(self, request, *args, **kwargs): ... if some_condition: exc = ValidationError("Employee Already Exists")...

Hi @amitv9493, djangorestframework-camel-case is not supported out of the box, still check #59, it might be helpful to solve your issue

Thank you for the detailed issue report. The short answer is yes, if you want to show a 404 in your case, you should add the 404 response to `extend_schema`....