{"action":"created","issue":{"url":"https://api.github.com/repos/Jumpscale/go-raml/issues/4","repository_url":"https://api.github.com/repos/Jumpscale/go-raml","labels_url":"https://api.github.com/repos/Jumpscale/go-raml/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/Jumpscale/go-raml/issues/4/comments","events_url":"https://api.github.com/repos/Jumpscale/go-raml/issues/4/events","html_url":"https://github.com/Jumpscale/go-raml/issues/4","id":131527514,"number":4,"title":"Bodies code generatation in client","user":{"login":"iwanbk","id":977552,"avatar_url":"https://avatars.githubusercontent.com/u/977552?v=3","gravatar_id":"","url":"https://api.github.com/users/iwanbk","html_url":"https://github.com/iwanbk","followers_url":"https://api.github.com/users/iwanbk/followers","following_url":"https://api.github.com/users/iwanbk/following{/other_user}","gists_url":"https://api.github.com/users/iwanbk/gists{/gist_id}","starred_url":"https://api.github.com/users/iwanbk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iwanbk/subscriptions","organizations_url":"https://api.github.com/users/iwanbk/orgs","repos_url":"https://api.github.com/users/iwanbk/repos","events_url":"https://api.github.com/users/iwanbk/events{/privacy}","received_events_url":"https://api.github.com/users/iwanbk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"robvanmieghem","id":3511318,"avatar_url":"https://avatars.githubusercontent.com/u/3511318?v=3","gravatar_id":"","url":"https://api.github.com/users/robvanmieghem","html_url":"https://github.com/robvanmieghem","followers_url":"https://api.github.com/users/robvanmieghem/followers","following_url":"https://api.github.com/users/robvanmieghem/following{/other_user}","gists_url":"https://api.github.com/users/robvanmieghem/gists{/gist_id}","starred_url":"https://api.github.com/users/robvanmieghem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robvanmieghem/subscriptions","organizations_url":"https://api.github.com/users/robvanmieghem/orgs","repos_url":"https://api.github.com/users/robvanmieghem/repos","events_url":"https://api.github.com/users/robvanmieghem/events{/privacy}","received_events_url":"https://api.github.com/users/robvanmieghem/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-02-05T01:30:56Z","updated_at":"2016-02-13T02:02:39Z","closed_at":"2016-02-13T02:02:38Z","body":"In RAML, we can specify request & response  [Body](http://docs.raml.org/specs/1.0/#raml-10-spec-bodies). There is no technical issue with it. \r\n\r\nBut i **personally** don't like to use it in client, we might end up have code with signature like this.\r\n```\r\nfunc UserPost(data userPostReqBody, ...) (userPostRespBody.......)\r\n\r\nfunc UserPut(data userPutReqBody,....)(userPutRespBody......)\r\n\r\n```\r\nAs you can see, we have 2 structs for each func, which i think is ugly.\r\n\r\nMy proposal:\r\n- for request body, we can use `interface{}` instead of `userPostReqBody`\r\n- we provide auto generated doc for request body, the content is RAML Bodies\r\n- for request response, we only give http.Response object\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Jumpscale/go-raml/issues/comments/183560145","html_url":"https://github.com/Jumpscale/go-raml/issues/4#issuecomment-183560145","issue_url":"https://api.github.com/repos/Jumpscale/go-raml/issues/4","id":183560145,"user":{"login":"iwanbk","id":977552,"avatar_url":"https://avatars.githubusercontent.com/u/977552?v=3","gravatar_id":"","url":"https://api.github.com/users/iwanbk","html_url":"https://github.com/iwanbk","followers_url":"https://api.github.com/users/iwanbk/followers","following_url":"https://api.github.com/users/iwanbk/following{/other_user}","gists_url":"https://api.github.com/users/iwanbk/gists{/gist_id}","starred_url":"https://api.github.com/users/iwanbk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iwanbk/subscriptions","organizations_url":"https://api.github.com/users/iwanbk/orgs","repos_url":"https://api.github.com/users/iwanbk/repos","events_url":"https://api.github.com/users/iwanbk/events{/privacy}","received_events_url":"https://api.github.com/users/iwanbk/received_events","type":"User","site_admin":false},"created_at":"2016-02-13T02:02:38Z","updated_at":"2016-02-13T02:02:38Z","body":"It has been implemented as example above\r\n\r\n```\r\nfunc UserPost(data userPostReqBody, ...) (userPostRespBody.......)\r\n\r\nfunc UserPut(data userPutReqBody,....)(userPutRespBody......)\r\n```"}}