Skip to content

Commit

Permalink
fix: lint issue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Prashansa-K committed Oct 23, 2024
1 parent adb60f3 commit a9aa487
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openapi2kong/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ func generateParameterSchema(operation *v3.Operation, insoCompat bool) ([]map[st

_, typeStr, ok := fetchOneOfAndType(schemaMap)
if ok && typeStr == "" {
return nil, fmt.Errorf(`parameter schemas for request-validator plugin using oneOf must have a top-level type property`)
return nil,
fmt.Errorf(`parameter schemas for request-validator plugin using oneOf must have a top-level type property`)
}
}

Expand Down

0 comments on commit a9aa487

Please sign in to comment.