diff --git a/generate/parser.go b/generate/parser.go index ea94cb2..5ecc8e3 100644 --- a/generate/parser.go +++ b/generate/parser.go @@ -166,7 +166,7 @@ func renderServiceRoutes(service spec.Service, groups []spec.Group, paths swagge parameters = parseHeader(member, parameters) } } - if strings.ToUpper(route.Method) == http.MethodGet { + if strings.ToUpper(route.Method) == http.MethodGet || strings.ToUpper(route.Method) == http.MethodDelete { for _, member := range defineStruct.Members { if hasPathParameters(member) || hasHeaderParameters(member) { continue