We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13ede7f commit 005dcd3Copy full SHA for 005dcd3
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...]
+ // "// @<annotationName> [args...]" -> []string{"//", "@<annotationName>", "args..."}
93
splitN := strings.SplitN(strings.TrimSpace(line.Text), " ", 3)
94
- if len(splitN) < 2 {
+ if len(splitN) < 3 {
95
continue // comment prefix without any content
96
97
0 commit comments