We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8a6916 commit 2a78f41Copy full SHA for 2a78f41
drf_standardized_errors/openapi.py
@@ -126,11 +126,6 @@ def _should_add_validation_error_response(self) -> bool:
126
"""
127
add a validation error response when unsafe methods have a request body
128
or when a list view implements filtering with django-filters.
129
- todo add a way to disable adding the 400 validation response on an
130
- operation-basis. This is because "serializer.is_valid" has the option
131
- of not raising an exception. At the very least, add docs to demo what
132
- to override to accomplish that (maybe sth like
133
- isinstance(self.view, SomeViewSet) and checking self.method)
134
135
request_serializer = self.get_request_serializer()
136
has_request_body = self.method in ("PUT", "PATCH", "POST") and (
0 commit comments