{"action":"created","issue":{"url":"https://api.github.com/repos/go-swagger/go-swagger/issues/1624","repository_url":"https://api.github.com/repos/go-swagger/go-swagger","labels_url":"https://api.github.com/repos/go-swagger/go-swagger/issues/1624/labels{/name}","comments_url":"https://api.github.com/repos/go-swagger/go-swagger/issues/1624/comments","events_url":"https://api.github.com/repos/go-swagger/go-swagger/issues/1624/events","html_url":"https://github.com/go-swagger/go-swagger/issues/1624","id":342512540,"node_id":"MDU6SXNzdWUzNDI1MTI1NDA=","number":1624,"title":"Can't have server code in subdirectory","user":{"login":"maqdev","id":614676,"node_id":"MDQ6VXNlcjYxNDY3Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/614676?v=4","gravatar_id":"","url":"https://api.github.com/users/maqdev","html_url":"https://github.com/maqdev","followers_url":"https://api.github.com/users/maqdev/followers","following_url":"https://api.github.com/users/maqdev/following{/other_user}","gists_url":"https://api.github.com/users/maqdev/gists{/gist_id}","starred_url":"https://api.github.com/users/maqdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maqdev/subscriptions","organizations_url":"https://api.github.com/users/maqdev/orgs","repos_url":"https://api.github.com/users/maqdev/repos","events_url":"https://api.github.com/users/maqdev/events{/privacy}","received_events_url":"https://api.github.com/users/maqdev/received_events","type":"User","site_admin":false},"labels":[{"id":493024330,"node_id":"MDU6TGFiZWw0OTMwMjQzMzA=","url":"https://api.github.com/repos/go-swagger/go-swagger/labels/generator","name":"generator","color":"bfdadc","default":false},{"id":148436509,"node_id":"MDU6TGFiZWwxNDg0MzY1MDk=","url":"https://api.github.com/repos/go-swagger/go-swagger/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-07-18T22:21:49Z","updated_at":"2018-07-30T18:11:59Z","closed_at":null,"author_association":"NONE","body":"## Problem statement\r\n\r\nWhen passing -s argument as below which includes /, I was hoping that would allow the server code to be in a subdirectory:\r\n\r\n`swagger generate server -f ./api/swagger/swagger.yaml -s pkg/srv`\r\n\r\nHowever the import statements, for example in `configure_srv.go` are snake casing the package name:\r\n\r\n`\"github.com/xxx/app/pkg_srv/operations\"`\r\n\r\n## Swagger specification\r\n2.0\r\n\r\n## Environment\r\nswagger version: 0.15.0\r\ngo version: 1.10.3\r\nOS:  OS-X\r\n"},"comment":{"url":"https://api.github.com/repos/go-swagger/go-swagger/issues/comments/408958565","html_url":"https://github.com/go-swagger/go-swagger/issues/1624#issuecomment-408958565","issue_url":"https://api.github.com/repos/go-swagger/go-swagger/issues/1624","id":408958565,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODk1ODU2NQ==","user":{"login":"maqdev","id":614676,"node_id":"MDQ6VXNlcjYxNDY3Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/614676?v=4","gravatar_id":"","url":"https://api.github.com/users/maqdev","html_url":"https://github.com/maqdev","followers_url":"https://api.github.com/users/maqdev/followers","following_url":"https://api.github.com/users/maqdev/following{/other_user}","gists_url":"https://api.github.com/users/maqdev/gists{/gist_id}","starred_url":"https://api.github.com/users/maqdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maqdev/subscriptions","organizations_url":"https://api.github.com/users/maqdev/orgs","repos_url":"https://api.github.com/users/maqdev/repos","events_url":"https://api.github.com/users/maqdev/events{/privacy}","received_events_url":"https://api.github.com/users/maqdev/received_events","type":"User","site_admin":false},"created_at":"2018-07-30T18:11:58Z","updated_at":"2018-07-30T18:11:58Z","author_association":"NONE","body":"@fredbi actually you can specify sub-package for the models as mentioned by @gregmarr.\r\nA workaround is to create a sub-directory, then run swagger inside it and it generates correct package names."}}
{"actor":{"display_login":"maqdev"}}