Add command to generate swagger docs
This commit is contained in:
parent
a911c3d6f7
commit
96fada53ff
|
@ -53,6 +53,8 @@ var (
|
|||
Aliases = map[string]interface{}{
|
||||
"integration-test": IntegrationTest,
|
||||
"fmt-check": FmtCheck,
|
||||
"do-the-swag": DoTheSwag,
|
||||
"got-swag": GotSwag,
|
||||
}
|
||||
)
|
||||
|
||||
|
@ -254,7 +256,8 @@ func Lint() {
|
|||
}
|
||||
|
||||
func DoTheSwag() {
|
||||
|
||||
checkAndInstallGoTool("swag", "github.com/swaggo/swag/cmd/swag")
|
||||
runAndStreamOutput("swag", "init", "-g", "./pkg/routes/routes.go", "--parseDependency", "-d", RootPath, "-o", RootPath+"/pkg/swagger")
|
||||
}
|
||||
|
||||
func GotSwag() {
|
||||
|
|
|
@ -6157,7 +6157,6 @@ var doc = `{
|
|||
}
|
||||
},
|
||||
"definitions": {
|
||||
"code.vikunja.io.web.HTTPError": {"type": "object","properties": {"code": {"type": "integer"},"message": {"type": "string"}}},
|
||||
"afero.File": {
|
||||
"type": "object"
|
||||
},
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue