{"action":"created","issue":{"url":"https://api.github.com/repos/screwdriver-cd/screwdriver/issues/50","repository_url":"https://api.github.com/repos/screwdriver-cd/screwdriver","labels_url":"https://api.github.com/repos/screwdriver-cd/screwdriver/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/screwdriver-cd/screwdriver/issues/50/comments","events_url":"https://api.github.com/repos/screwdriver-cd/screwdriver/issues/50/events","html_url":"https://github.com/screwdriver-cd/screwdriver/pull/50","id":167778683,"number":50,"title":"Fixing label for list responses (fixes Swagger validation)","user":{"login":"stjohnjohnson","id":622065,"avatar_url":"https://avatars.githubusercontent.com/u/622065?v=3","gravatar_id":"","url":"https://api.github.com/users/stjohnjohnson","html_url":"https://github.com/stjohnjohnson","followers_url":"https://api.github.com/users/stjohnjohnson/followers","following_url":"https://api.github.com/users/stjohnjohnson/following{/other_user}","gists_url":"https://api.github.com/users/stjohnjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/stjohnjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stjohnjohnson/subscriptions","organizations_url":"https://api.github.com/users/stjohnjohnson/orgs","repos_url":"https://api.github.com/users/stjohnjohnson/repos","events_url":"https://api.github.com/users/stjohnjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/stjohnjohnson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/screwdriver-cd/screwdriver/labels/bug","name":"bug","color":"ee0701"},{"url":"https://api.github.com/repos/screwdriver-cd/screwdriver/labels/change/patch","name":"change/patch","color":"c2e0c6"},{"url":"https://api.github.com/repos/screwdriver-cd/screwdriver/labels/priority/medium","name":"priority/medium","color":"f9d0c4"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-27T06:10:59Z","updated_at":"2016-07-27T17:47:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/screwdriver-cd/screwdriver/pulls/50","html_url":"https://github.com/screwdriver-cd/screwdriver/pull/50","diff_url":"https://github.com/screwdriver-cd/screwdriver/pull/50.diff","patch_url":"https://github.com/screwdriver-cd/screwdriver/pull/50.patch"},"body":"According to http://bigstickcarpet.com/swagger-parser/www/index.html, our validation failed because all the `list` APIs had a schema with a `null` title.\r\n\r\nAdding `label` fixes this title.\r\n\r\nBefore:\r\n```\r\n\"responses\": {\r\n  \"200\": {\r\n    \"schema\": {\r\n      \"$ref\": \"#/definitions/Model 4\",\r\n      \"title\": null\r\n    },\r\n    \"description\": \"Successful\"\r\n  }\r\n}\r\n```\r\n\r\nAfter:\r\n```\r\n\"responses\": {\r\n  \"200\": {\r\n    \"schema\": {\r\n      \"$ref\": \"#/definitions/List of Builds\",\r\n      \"title\": \"List of Builds\"\r\n    },\r\n    \"description\": \"Successful\"\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/screwdriver-cd/screwdriver/issues/comments/235664318","html_url":"https://github.com/screwdriver-cd/screwdriver/pull/50#issuecomment-235664318","issue_url":"https://api.github.com/repos/screwdriver-cd/screwdriver/issues/50","id":235664318,"user":{"login":"d2lam","id":3401924,"avatar_url":"https://avatars.githubusercontent.com/u/3401924?v=3","gravatar_id":"","url":"https://api.github.com/users/d2lam","html_url":"https://github.com/d2lam","followers_url":"https://api.github.com/users/d2lam/followers","following_url":"https://api.github.com/users/d2lam/following{/other_user}","gists_url":"https://api.github.com/users/d2lam/gists{/gist_id}","starred_url":"https://api.github.com/users/d2lam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d2lam/subscriptions","organizations_url":"https://api.github.com/users/d2lam/orgs","repos_url":"https://api.github.com/users/d2lam/repos","events_url":"https://api.github.com/users/d2lam/events{/privacy}","received_events_url":"https://api.github.com/users/d2lam/received_events","type":"User","site_admin":false},"created_at":"2016-07-27T17:47:38Z","updated_at":"2016-07-27T17:47:38Z","body":"👍 "}}
{"actor":{"display_login":"d2lam"}}