Skip to content

Commit e3d68dc

Browse files
authored
Remove redundant ExcludeResponseBody check in ValidateResponse (#1056)
1 parent 050a930 commit e3d68dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openapi3filter/validate_response.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func ValidateResponse(ctx context.Context, input *ResponseValidationInput) error
9494
}
9595

9696
content := response.Content
97-
if len(content) == 0 || options.ExcludeResponseBody {
97+
if len(content) == 0 {
9898
// An operation does not contains a validation schema for responses with this status code.
9999
return nil
100100
}

0 commit comments

Comments
 (0)