8000 Can't have server code in subdirectory · Issue #1624 · go-swagger/go-swagger · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Can't have server code in subdirectory #1624
Closed
@maqdev

Description

@maqdev

Problem statement

When passing -s argument as below which includes /, I was hoping that would allow the server code to be in a subdirectory:

swagger generate server -f ./api/swagger/swagger.yaml -s pkg/srv

However the import statements, for example in configure_srv.go are snake casing the package name:

"github.com/xxx/app/pkg_srv/operations"

Swagger specification

2.0

Environment

swagger version: 0.15.0
go version: 1.10.3
OS: OS-X

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0