Skip to content

Commit d8d2c68

Browse files
saisatishkarradaveshanley
authored andcommitted
fix: linting issues
1 parent 6a3bd26 commit d8d2c68

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

helpers/operation_utilities_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ func TestExtractContentType(t *testing.T) {
112112
require.Empty(t, charset)
113113
require.Empty(t, boundary)
114114
}
115+
115116
func TestExtractOperationHeadFallback(t *testing.T) {
116117
pathItem := &v3.PathItem{
117118
Get: &v3.Operation{Summary: "GET operation"},

responses/validate_response.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ func ValidateResponseSchema(input *ValidateResponseSchemaInput) (bool, []*errors
156156
request := input.Request
157157
response := input.Response
158158
schema := input.Schema
159-
160159

161160
if response == nil || response.Body == http.NoBody {
162161

@@ -215,7 +214,6 @@ func ValidateResponseSchema(input *ValidateResponseSchemaInput) (bool, []*errors
215214

216215
var decodedObj interface{}
217216

218-
219217
if len(responseBody) > 0 {
220218
// Per RFC7231, a response to a HEAD request MUST NOT include a message body.
221219
if request != nil && request.Method == http.MethodHead {

responses/validate_response_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ components:
291291
assert.Contains(t, errors[0].Message, "failed schema rendering")
292292
assert.Contains(t, errors[0].Reason, "circular reference")
293293
}
294+
294295
func TestValidateResponseSchema_ResponseMissing(t *testing.T) {
295296
schema := parseSchemaFromSpec(t, `type: object
296297
properties:

0 commit comments

Comments
 (0)