{"action":"created","issue":{"url":"https://api.github.com/repos/emicklei/go-restful/issues/223","labels_url":"https://api.github.com/repos/emicklei/go-restful/issues/223/labels{/name}","comments_url":"https://api.github.com/repos/emicklei/go-restful/issues/223/comments","events_url":"https://api.github.com/repos/emicklei/go-restful/issues/223/events","html_url":"https://github.com/emicklei/go-restful/issues/223","id":100382245,"number":223,"title":"using array/slice with RouterBuilder.Reads ","user":{"login":"johnwilson","id":1472296,"avatar_url":"https://avatars.githubusercontent.com/u/1472296?v=3","gravatar_id":"","url":"https://api.github.com/users/johnwilson","html_url":"https://github.com/johnwilson","followers_url":"https://api.github.com/users/johnwilson/followers","following_url":"https://api.github.com/users/johnwilson/following{/other_user}","gists_url":"https://api.github.com/users/johnwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/johnwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnwilson/subscriptions","organizations_url":"https://api.github.com/users/johnwilson/orgs","repos_url":"https://api.github.com/users/johnwilson/repos","events_url":"https://api.github.com/users/johnwilson/events{/privacy}","received_events_url":"https://api.github.com/users/johnwilson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-11T18:57:58Z","updated_at":"2015-08-12T06:37:08Z","closed_at":null,"body":"Hello!\r\n\r\nI'm not able to get the swagger docs to generate a model when I pass a slice to the `RouterBuilder.Reads` function.\r\nFor example, this piece of code doesn't output any model for body parameter type section the docs:\r\n\r\n```go\r\ntype Color struct {\r\n    Name string `json:\"name\"`\r\n}\r\n\r\n...\r\nws.Route(ws.Put(\"/{user-id}/colors\").To(u.updateColors).\r\n    Doc(\"update user's color choices\").\r\n    Param(ws.PathParameter(\"user-id\", \"identifier of the user\").DataType(\"int\")).\r\n    Reads([]Color{}))\r\n```\r\n\r\nAny help would be appreciated.\r\nAnd thanks for your wonderful work!"},"comment":{"url":"https://api.github.com/repos/emicklei/go-restful/issues/comments/130186376","html_url":"https://github.com/emicklei/go-restful/issues/223#issuecomment-130186376","issue_url":"https://api.github.com/repos/emicklei/go-restful/issues/223","id":130186376,"user":{"login":"emicklei","id":686220,"avatar_url":"https://avatars.githubusercontent.com/u/686220?v=3","gravatar_id":"","url":"https://api.github.com/users/emicklei","html_url":"https://github.com/emicklei","followers_url":"https://api.github.com/users/emicklei/followers","following_url":"https://api.github.com/users/emicklei/following{/other_user}","gists_url":"https://api.github.com/users/emicklei/gists{/gist_id}","starred_url":"https://api.github.com/users/emicklei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emicklei/subscriptions","organizations_url":"https://api.github.com/users/emicklei/orgs","repos_url":"https://api.github.com/users/emicklei/repos","events_url":"https://api.github.com/users/emicklei/events{/privacy}","received_events_url":"https://api.github.com/users/emicklei/received_events","type":"User","site_admin":false},"created_at":"2015-08-12T06:37:08Z","updated_at":"2015-08-12T06:37:08Z","body":"This is known issue (to me) and happened in my project too. I remember investigating this and an early conclusion was that swagger 1.2 UI just didn't handle it as expected.  In my project I decided to pass the non-slice version to Reads() instead ; it's only for documentation and not used for runtime decoding. \r\n\r\nRecently, I started working on the swagger2 project and hope to see this fixed (and many other issues)."}}