We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79a19b6 commit ee4f8d3Copy full SHA for ee4f8d3
coderd/coderdtest/swaggerparser.go
@@ -89,9 +89,9 @@ func parseSwaggerComment(commentGroup *ast.CommentGroup) SwaggerComment {
89
failures: []response{},
90
}
91
for _, line := range commentGroup.List {
92
- // "// @<annotationName> [args...]" -> []string{"//", "@<annotationName>", "args..."}
+ // @<annotationName> [args...]
93
splitN := strings.SplitN(strings.TrimSpace(line.Text), " ", 3)
94
- if len(splitN) < 3 {
+ if len(splitN) < 2 {
95
continue // comment prefix without any content
96
97
0 commit comments