{"action":"opened","issue":{"url":"https://api.github.com/repos/go-swagger/go-swagger/issues/59","labels_url":"https://api.github.com/repos/go-swagger/go-swagger/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/go-swagger/go-swagger/issues/59/comments","events_url":"https://api.github.com/repos/go-swagger/go-swagger/issues/59/events","html_url":"https://github.com/go-swagger/go-swagger/issues/59","id":106280394,"number":59,"title":"Array references are generated as array of structs rather than array of pointers.","user":{"login":"chakrit","id":45545,"avatar_url":"https://avatars.githubusercontent.com/u/45545?v=3","gravatar_id":"","url":"https://api.github.com/users/chakrit","html_url":"https://github.com/chakrit","followers_url":"https://api.github.com/users/chakrit/followers","following_url":"https://api.github.com/users/chakrit/following{/other_user}","gists_url":"https://api.github.com/users/chakrit/gists{/gist_id}","starred_url":"https://api.github.com/users/chakrit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chakrit/subscriptions","organizations_url":"https://api.github.com/users/chakrit/orgs","repos_url":"https://api.github.com/users/chakrit/repos","events_url":"https://api.github.com/users/chakrit/events{/privacy}","received_events_url":"https://api.github.com/users/chakrit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-14T06:38:59Z","updated_at":"2015-09-14T06:38:59Z","closed_at":null,"body":"Example definition:\r\n\r\n```yml\r\nOrderPlacement:                                                                      \r\n  properties:                                                                        \r\n    items:                                                                           \r\n      type: 'array'                                                                  \r\n      items: { '$ref': '#/definitions/OrderItem' }\r\n```\r\n\r\nThe generated server code looks like this:\r\n\r\n```yml\r\n// OrderPlacement                                                                      \r\ntype OrderPlacement struct {                                                           \r\n\r\n  // Items                                                                             \r\n  Items []OrderItem `json:\"items\" xml:\"items\"`                                         \r\n}                                                                                      \r\n```\r\n\r\nNote the `[]OrderItem`. Per de facto Go conventions I think this should be `[]*OrderItem`.\r\n\r\n"}}