Skip to content

Commit

Permalink
fix: form tag
Browse files Browse the repository at this point in the history
  • Loading branch information
tangxinfa committed May 6, 2024
1 parent a4787d7 commit c3f1812
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func renderServiceRoutes(service spec.Service, groups []spec.Group, paths swagge

if defineStruct, ok := route.RequestType.(spec.DefineStruct); ok {
for _, member := range defineStruct.Members {
if strings.Contains(member.Tag, "form") {
if member.IsTagMember("form") {
operationObject.Consumes = []string{"multipart/form-data"}
break
}
Expand Down

0 comments on commit c3f1812

Please sign in to comment.