diff --git a/generate/swaggergen/g_docs.go b/generate/swaggergen/g_docs.go index 6c05489..922b93d 100644 --- a/generate/swaggergen/g_docs.go +++ b/generate/swaggergen/g_docs.go @@ -613,7 +613,7 @@ func parserComments(f *ast.FuncDecl, controllerName, pkgpath string) error { typ := pp[len(pp)-1] if len(pp) >= 2 { isArray := false - if (p[1] == "body" || p[1] == "formData") && strings.HasPrefix(p[2], "[]") { + if p[1] == "body" && strings.HasPrefix(p[2], "[]") { p[2] = p[2][2:] isArray = true }