Skip to content

Commit 2a78f41

Browse files
committed
remove comment as a note was already added to openapi docs
1 parent e8a6916 commit 2a78f41

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drf_standardized_errors/openapi.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,6 @@ def _should_add_validation_error_response(self) -> bool:
126126
"""
127127
add a validation error response when unsafe methods have a request body
128128
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)
134129
"""
135130
request_serializer = self.get_request_serializer()
136131
has_request_body = self.method in ("PUT", "PATCH", "POST") and (

0 commit comments

Comments
 (0)