{"action":"created","issue":{"url":"https://api.github.com/repos/DapperDox/dapperdox/issues/79","repository_url":"https://api.github.com/repos/DapperDox/dapperdox","labels_url":"https://api.github.com/repos/DapperDox/dapperdox/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/DapperDox/dapperdox/issues/79/comments","events_url":"https://api.github.com/repos/DapperDox/dapperdox/issues/79/events","html_url":"https://github.com/DapperDox/dapperdox/issues/79","id":268210900,"number":79,"title":"Response resources which are arrays don't indicate as such","user":{"login":"JustASquid","id":11645696,"avatar_url":"https://avatars2.githubusercontent.com/u/11645696?v=4","gravatar_id":"","url":"https://api.github.com/users/JustASquid","html_url":"https://github.com/JustASquid","followers_url":"https://api.github.com/users/JustASquid/followers","following_url":"https://api.github.com/users/JustASquid/following{/other_user}","gists_url":"https://api.github.com/users/JustASquid/gists{/gist_id}","starred_url":"https://api.github.com/users/JustASquid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JustASquid/subscriptions","organizations_url":"https://api.github.com/users/JustASquid/orgs","repos_url":"https://api.github.com/users/JustASquid/repos","events_url":"https://api.github.com/users/JustASquid/events{/privacy}","received_events_url":"https://api.github.com/users/JustASquid/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-24T22:41:36Z","updated_at":"2018-03-08T12:31:58Z","closed_at":"2018-03-08T12:31:58Z","author_association":"NONE","body":"Check out this part of the petstore example spec for operation `findPetsByStatus`:\r\n\r\n```\r\n \"responses\": {\r\n                    \"200\": {\r\n                        \"description\": \"successful operation\",\r\n                        \"schema\": {\r\n                            \"type\": \"array\",\r\n                            \"items\": {\r\n                                \"$ref\": \"#/definitions/Pet\"\r\n                            }\r\n                        }\r\n                    },\r\n                    \"400\": {\r\n                        \"description\": \"Invalid status value\"\r\n                    }\r\n                },\r\n```\r\n\r\nObviously this response returns an array of pets on success. However, in DapperDox itself, it simply shows that it will return `Pet`:\r\n\r\n![Returns Pet](https://i.imgur.com/W8qJ4tO.png)\r\n\r\nThis is pretty confusing in my opinion. DapperDox should show that an array of resources is being returned here."},"comment":{"url":"https://api.github.com/repos/DapperDox/dapperdox/issues/comments/371473964","html_url":"https://github.com/DapperDox/dapperdox/issues/79#issuecomment-371473964","issue_url":"https://api.github.com/repos/DapperDox/dapperdox/issues/79","id":371473964,"user":{"login":"zxchris","id":4802778,"avatar_url":"https://avatars3.githubusercontent.com/u/4802778?v=4","gravatar_id":"","url":"https://api.github.com/users/zxchris","html_url":"https://github.com/zxchris","followers_url":"https://api.github.com/users/zxchris/followers","following_url":"https://api.github.com/users/zxchris/following{/other_user}","gists_url":"https://api.github.com/users/zxchris/gists{/gist_id}","starred_url":"https://api.github.com/users/zxchris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zxchris/subscriptions","organizations_url":"https://api.github.com/users/zxchris/orgs","repos_url":"https://api.github.com/users/zxchris/repos","events_url":"https://api.github.com/users/zxchris/events{/privacy}","received_events_url":"https://api.github.com/users/zxchris/received_events","type":"User","site_admin":false},"created_at":"2018-03-08T12:31:58Z","updated_at":"2018-03-08T12:31:58Z","author_association":"COLLABORATOR","body":"This is fixed in the latest release v1.2.1, and on the master branch.\r\n\r\nResponse resources are suffixed with [] if an array of resources is returned.\r\nA request body that takes an array resources is now correctly described."}}
{"actor":{"display_login":"zxchris"}}