{"action":"created","issue":{"url":"https://api.github.com/repos/swaggo/swag/issues/7","repository_url":"https://api.github.com/repos/swaggo/swag","labels_url":"https://api.github.com/repos/swaggo/swag/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/swaggo/swag/issues/7/comments","events_url":"https://api.github.com/repos/swaggo/swag/issues/7/events","html_url":"https://github.com/swaggo/swag/issues/7","id":265203159,"number":7,"title":"this line panic on parsing","user":{"login":"pilere","id":3319800,"avatar_url":"https://avatars2.githubusercontent.com/u/3319800?v=4","gravatar_id":"","url":"https://api.github.com/users/pilere","html_url":"https://github.com/pilere","followers_url":"https://api.github.com/users/pilere/followers","following_url":"https://api.github.com/users/pilere/following{/other_user}","gists_url":"https://api.github.com/users/pilere/gists{/gist_id}","starred_url":"https://api.github.com/users/pilere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pilere/subscriptions","organizations_url":"https://api.github.com/users/pilere/orgs","repos_url":"https://api.github.com/users/pilere/repos","events_url":"https://api.github.com/users/pilere/events{/privacy}","received_events_url":"https://api.github.com/users/pilere/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-10-13T08:07:08Z","updated_at":"2017-10-18T07:36:43Z","closed_at":null,"author_association":"NONE","body":"https://github.com/swaggo/swag/blob/abf4f7b6b2877ebff42dcef5d7a4d2138ca4e8bc/parser.go#L135\r\n\r\npanic: ParseComment panic:Can not find ref type: ...\r\nwith a type from another package of the form MyStructs.TheStructToUse\r\n\r\nI don't get why ....\r\nStéphane"},"comment":{"url":"https://api.github.com/repos/swaggo/swag/issues/comments/337486472","html_url":"https://github.com/swaggo/swag/issues/7#issuecomment-337486472","issue_url":"https://api.github.com/repos/swaggo/swag/issues/7","id":337486472,"user":{"login":"pilere","id":3319800,"avatar_url":"https://avatars2.githubusercontent.com/u/3319800?v=4","gravatar_id":"","url":"https://api.github.com/users/pilere","html_url":"https://github.com/pilere","followers_url":"https://api.github.com/users/pilere/followers","following_url":"https://api.github.com/users/pilere/following{/other_user}","gists_url":"https://api.github.com/users/pilere/gists{/gist_id}","starred_url":"https://api.github.com/users/pilere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pilere/subscriptions","organizations_url":"https://api.github.com/users/pilere/orgs","repos_url":"https://api.github.com/users/pilere/repos","events_url":"https://api.github.com/users/pilere/events{/privacy}","received_events_url":"https://api.github.com/users/pilere/received_events","type":"User","site_admin":false},"created_at":"2017-10-18T07:36:43Z","updated_at":"2017-10-18T07:36:43Z","author_association":"NONE","body":"if you could provide support for time.Time as a structure field, that would be great too : \r\nin your swag-test package : conf.go\r\npackage conf\r\n\r\nimport \"time\"\r\n\r\n```\r\n// GetMeActifResult utilise uniquement comme type de data pour swagger api result\r\ntype GetMeActifResult struct {\r\n\tID        int `json:\"id\"`\r\n\tCreatedAt time.Time\r\n}\r\n```\r\n\r\nyou get : \r\n```\r\n\\swag-test-master>swag init\r\n2017/10/18 09:32:10 Generate swagger docs....\r\n2017/10/18 09:32:10 Generate general API Info\r\npanic: not supported 'astSelectorExpr' yet.\r\n\r\ngoroutine 1 [running]:\r\npanic(0x719040, 0xc042305060)\r\n        C:/Go/src/runtime/panic.go:500 +0x1af\r\ngithub.com/swaggo/swag.getPropertyName(0xc042270b80, 0xc0422a4c90, 0xc04211f120)\r\n        D:/www/src/github.com/swaggo/swag/property.go:12 +0x9e\r\ngithub.com/swaggo/swag.(*Parser).ParseDefinitions(0xc04234be00)\r\n        D:/www/src/github.com/swaggo/swag/parser.go:193 +0x390\r\ngithub.com/swaggo/swag.(*Parser).ParseApi(0xc04234be00, 0x795bfc, 0x2, 0x7977bf, 0x9)\r\n        D:/www/src/github.com/swaggo/swag/parser.go:70 +0x2b6\r\ngithub.com/swaggo/swag/gen.(*Gen).Build(0xc04211f8c0, 0x795bfc, 0x2, 0x7977bf, 0x9, 0x0, 0x0)\r\n        D:/www/src/github.com/swaggo/swag/gen/gen.go:27 +0x4ad\r\nmain.main.func1(0xc042074840, 0x0, 0xc042074840)\r\n        D:/www/src/github.com/swaggo/swag/cmd/swag/main.go:21 +0x5c\r\ngithub.com/urfave/cli.HandleAction(0x725f60, 0x7c3140, 0xc042074840, 0xc04203cf00, 0x0)\r\n        D:/www/src/github.com/urfave/cli/app.go:502 +0xdb\r\ngithub.com/urfave/cli.Command.Run(0x7963ba, 0x4, 0x0, 0x0, 0xc04238dce0, 0x1, 0x1, 0x79983d, 0xe, 0x0, ...)\r\n        D:/www/src/github.com/urfave/cli/command.go:210 +0xbd9\r\ngithub.com/urfave/cli.(*App).Run(0xc042282000, 0xc0420383e0, 0x2, 0x2, 0x0, 0x0)\r\n        D:/www/src/github.com/urfave/cli/app.go:259 +0x801\r\nmain.main()\r\n        D:/www/src/github.com/swaggo/swag/cmd/swag/main.go:27 +0x143\r\n\r\n```\r\n\r\nThat would be great ... for now I am stuck with the fact that I need only one error code by error ... I was using this : \r\n```\r\n\r\n// GetMeActifs\r\n// @Summary GetMeActifs Get the list of actifs\r\n// @Description get all the actifs\r\n// @Accept  json\r\n// @Produce  json\r\n// @Success 200 {array} conf.GetMeActifResult\r\n// @Failure 403 {string} StatusForbidden \"Forbiden\"\r\n// @Failure 404 {string} StatusNotFound \"No User Found\" \r\n// @Failure 404 {string} StatusNotFound \"No Owner Found\"\r\n// @Router /actifs [get]\r\n\r\n```\r\n\r\nwhich is not tolerated by swagger : \r\n**// @Failure 404 {string} StatusNotFound \"No User Found\" \r\n// @Failure 404 {string} StatusNotFound \"No Owner Found\"**\r\n\r\n\r\nI need to find either a way out or to use another error code but then it's silly as it should be a 404 ....\r\n\r\nStéphane\r\n\r\n"}}
{"actor":{"display_login":"pilere"}}