We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 410f56e commit 4d4e46dCopy full SHA for 4d4e46d
tools/goctl/api/swagger/parameter.go
@@ -9,7 +9,7 @@ import (
9
)
10
11
func isPostJson(ctx Context, method string, tp apiSpec.Type) (string, bool) {
12
- if strings.EqualFold(method, http.MethodPost) {
+ if !strings.EqualFold(method, http.MethodPost) {
13
return "", false
14
}
15
structType, ok := tp.(apiSpec.DefineStruct)
0 commit comments