Closed
Description
Problem statement
I have a swagger API , and I use it to use the generate without any problem.
Today while I am testing I have this problem:
I run the
swagger generate server -t gen -f ./static/spec.yml --exclude-main -A wa-api
.
.
.
2020/07/18 04:33:28 executed template asset:serverDoc
2020/07/18 04:33:28 Generation completed!
For this generation to compile you need to have some packages in your GOPATH:
* github.com/go-openapi/runtime
* github.com/jessevdk/go-flags
It is the first time I have this error, and if I run go get -u -f
inside the directory I have this
# bitbucket.org/rockyOO7/wa-api/gen/restapi/operations/number
gen/restapi/operations/number/get_chats_parameters.go:155:25: not enough arguments in call to "github.com/go-openapi/errors".Required
have (string, string)
want (string, string, interface {})
gen/restapi/operations/number/get_chats_parameters.go:195:25: not enough arguments in call to "github.com/go-openapi/errors".Required
have (string, string)
want (string, string, interface {})
gen/restapi/operations/number/has_whats_app_parameters.go:91:25: not enough arguments in call to "github.com/go-openapi/errors".Required
have (string, string)
want (string, string, interface {})
gen/restapi/operations/number/is_online_parameters.go:91:25: not enough arguments in call to "github.com/go-openapi/errors".Required
have (string, string)
want (string, string, interface {})
Which is very strange.
My API file is
https://pastebin.com/raw/Brz5EU78
Steps to reproduce
swagger generate server -t gen -f ./static/spec.yml --exclude-main -A wa-api
Environment
swagger version: version: v0.23.0
go version: go version go1.13 linux/amd64
OS: Linux
Metadata
Metadata
Assignees
Labels
No labels