{"action":"closed","number":39,"pull_request":{"url":"https://api.github.com/repos/Clever/wag/pulls/39","id":83542690,"html_url":"https://github.com/Clever/wag/pull/39","diff_url":"https://github.com/Clever/wag/pull/39.diff","patch_url":"https://github.com/Clever/wag/pull/39.patch","issue_url":"https://api.github.com/repos/Clever/wag/issues/39","number":39,"state":"closed","locked":false,"title":"simplify interface for single-input operations","user":{"login":"rgarcia","id":72655,"avatar_url":"https://avatars.githubusercontent.com/u/72655?v=3","gravatar_id":"","url":"https://api.github.com/users/rgarcia","html_url":"https://github.com/rgarcia","followers_url":"https://api.github.com/users/rgarcia/followers","following_url":"https://api.github.com/users/rgarcia/following{/other_user}","gists_url":"https://api.github.com/users/rgarcia/gists{/gist_id}","starred_url":"https://api.github.com/users/rgarcia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgarcia/subscriptions","organizations_url":"https://api.github.com/users/rgarcia/orgs","repos_url":"https://api.github.com/users/rgarcia/repos","events_url":"https://api.github.com/users/rgarcia/events{/privacy}","received_events_url":"https://api.github.com/users/rgarcia/received_events","type":"User","site_admin":false},"body":"This is a breaking change to the server / client interface. It changes the interface definition for an operation like this\r\n\r\n```yaml\r\n    post:\r\n      operationId: createBook\r\n      description: Creates a book\r\n      parameters:\r\n        - name: newBook\r\n          in: body\r\n          schema:\r\n            $ref: \"#/definitions/Book\"\r\n      responses:\r\n        200:\r\n          description: \"Success\"\r\n          schema:\r\n            $ref: \"#/definitions/Book\"\r\n```\r\n\r\nfrom \r\n\r\n```go\r\nCreateBook(ctx context.Context, i *models.CreateBookInput) (*models.Book, error)\r\n...\r\ntype CreateBookInput struct {\r\n\tNewBook *Book\r\n}\r\n```\r\n\r\nto\r\n\r\n```go\r\nCreateBook(ctx context.Context, i *models.Book) (*models.Book, error)\r\n```\r\n\r\n\r\nGenerally speaking it will remove the wrapper input struct for any operation that has a single input in the body of the request.\r\n\r\ncc @carolinemodic who brought this up in reviewing matchmaker-service.","created_at":"2016-08-31T22:43:21Z","updated_at":"2016-09-01T14:26:48Z","closed_at":"2016-09-01T14:26:48Z","merged_at":"2016-09-01T14:26:48Z","merge_commit_sha":"724c5750e8aab3113d8f93164211ccecada54cde","assignee":{"login":"kvigen","id":5514539,"avatar_url":"https://avatars.githubusercontent.com/u/5514539?v=3","gravatar_id":"","url":"https://api.github.com/users/kvigen","html_url":"https://github.com/kvigen","followers_url":"https://api.github.com/users/kvigen/followers","following_url":"https://api.github.com/users/kvigen/following{/other_user}","gists_url":"https://api.github.com/users/kvigen/gists{/gist_id}","starred_url":"https://api.github.com/users/kvigen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvigen/subscriptions","organizations_url":"https://api.github.com/users/kvigen/orgs","repos_url":"https://api.github.com/users/kvigen/repos","events_url":"https://api.github.com/users/kvigen/events{/privacy}","received_events_url":"https://api.github.com/users/kvigen/received_events","type":"User","site_admin":false},"assignees":[{"login":"kvigen","id":5514539,"avatar_url":"https://avatars.githubusercontent.com/u/5514539?v=3","gravatar_id":"","url":"https://api.github.com/users/kvigen","html_url":"https://github.com/kvigen","followers_url":"https://api.github.com/users/kvigen/followers","following_url":"https://api.github.com/users/kvigen/following{/other_user}","gists_url":"https://api.github.com/users/kvigen/gists{/gist_id}","starred_url":"https://api.github.com/users/kvigen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvigen/subscriptions","organizations_url":"https://api.github.com/users/kvigen/orgs","repos_url":"https://api.github.com/users/kvigen/repos","events_url":"https://api.github.com/users/kvigen/events{/privacy}","received_events_url":"https://api.github.com/users/kvigen/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Clever/wag/pulls/39/commits","review_comments_url":"https://api.github.com/repos/Clever/wag/pulls/39/comments","review_comment_url":"https://api.github.com/repos/Clever/wag/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Clever/wag/issues/39/comments","statuses_url":"https://api.github.com/repos/Clever/wag/statuses/b0e0b1ea66fab3ae49070310a4fd4f6a354f08f2","head":{"label":"Clever:simplify-input-types","ref":"simplify-input-types","sha":"b0e0b1ea66fab3ae49070310a4fd4f6a354f08f2","user":{"login":"Clever","id":1885509,"avatar_url":"https://avatars.githubusercontent.com/u/1885509?v=3","gravatar_id":"","url":"https://api.github.com/users/Clever","html_url":"https://github.com/Clever","followers_url":"https://api.github.com/users/Clever/followers","following_url":"https://api.github.com/users/Clever/following{/other_user}","gists_url":"https://api.github.com/users/Clever/gists{/gist_id}","starred_url":"https://api.github.com/users/Clever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Clever/subscriptions","organizations_url":"https://api.github.com/users/Clever/orgs","repos_url":"https://api.github.com/users/Clever/repos","events_url":"https://api.github.com/users/Clever/events{/privacy}","received_events_url":"https://api.github.com/users/Clever/received_events","type":"Organization","site_admin":false},"repo":{"id":65332703,"name":"wag","full_name":"Clever/wag","owner":{"login":"Clever","id":1885509,"avatar_url":"https://avatars.githubusercontent.com/u/1885509?v=3","gravatar_id":"","url":"https://api.github.com/users/Clever","html_url":"https://github.com/Clever","followers_url":"https://api.github.com/users/Clever/followers","following_url":"https://api.github.com/users/Clever/following{/other_user}","gists_url":"https://api.github.com/users/Clever/gists{/gist_id}","starred_url":"https://api.github.com/users/Clever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Clever/subscriptions","organizations_url":"https://api.github.com/users/Clever/orgs","repos_url":"https://api.github.com/users/Clever/repos","events_url":"https://api.github.com/users/Clever/events{/privacy}","received_events_url":"https://api.github.com/users/Clever/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Clever/wag","description":"sWAGger - Web API Generator","fork":false,"url":"https://api.github.com/repos/Clever/wag","forks_url":"https://api.github.com/repos/Clever/wag/forks","keys_url":"https://api.github.com/repos/Clever/wag/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Clever/wag/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Clever/wag/teams","hooks_url":"https://api.github.com/repos/Clever/wag/hooks","issue_events_url":"https://api.github.com/repos/Clever/wag/issues/events{/number}","events_url":"https://api.github.com/repos/Clever/wag/events","assignees_url":"https://api.github.com/repos/Clever/wag/assignees{/user}","branches_url":"https://api.github.com/repos/Clever/wag/branches{/branch}","tags_url":"https://api.github.com/repos/Clever/wag/tags","blobs_url":"https://api.github.com/repos/Clever/wag/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Clever/wag/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Clever/wag/git/refs{/sha}","trees_url":"https://api.github.com/repos/Clever/wag/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Clever/wag/statuses/{sha}","languages_url":"https://api.github.com/repos/Clever/wag/languages","stargazers_url":"https://api.github.com/repos/Clever/wag/stargazers","contributors_url":"https://api.github.com/repos/Clever/wag/contributors","subscribers_url":"https://api.github.com/repos/Clever/wag/subscribers","subscription_url":"https://api.github.com/repos/Clever/wag/subscription","commits_url":"https://api.github.com/repos/Clever/wag/commits{/sha}","git_commits_url":"https://api.github.com/repos/Clever/wag/git/commits{/sha}","comments_url":"https://api.github.com/repos/Clever/wag/comments{/number}","issue_comment_url":"https://api.github.com/repos/Clever/wag/issues/comments{/number}","contents_url":"https://api.github.com/repos/Clever/wag/contents/{+path}","compare_url":"https://api.github.com/repos/Clever/wag/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Clever/wag/merges","archive_url":"https://api.github.com/repos/Clever/wag/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Clever/wag/downloads","issues_url":"https://api.github.com/repos/Clever/wag/issues{/number}","pulls_url":"https://api.github.com/repos/Clever/wag/pulls{/number}","milestones_url":"https://api.github.com/repos/Clever/wag/milestones{/number}","notifications_url":"https://api.github.com/repos/Clever/wag/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Clever/wag/labels{/name}","releases_url":"https://api.github.com/repos/Clever/wag/releases{/id}","deployments_url":"https://api.github.com/repos/Clever/wag/deployments","created_at":"2016-08-09T22:34:45Z","updated_at":"2016-08-09T23:19:20Z","pushed_at":"2016-09-01T14:26:48Z","git_url":"git://github.com/Clever/wag.git","ssh_url":"git@github.com:Clever/wag.git","clone_url":"https://github.com/Clever/wag.git","svn_url":"https://github.com/Clever/wag","homepage":null,"size":11350,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Clever:master","ref":"master","sha":"4706b05ad75761e7df9087d1773c02681e75572f","user":{"login":"Clever","id":1885509,"avatar_url":"https://avatars.githubusercontent.com/u/1885509?v=3","gravatar_id":"","url":"https://api.github.com/users/Clever","html_url":"https://github.com/Clever","followers_url":"https://api.github.com/users/Clever/followers","following_url":"https://api.github.com/users/Clever/following{/other_user}","gists_url":"https://api.github.com/users/Clever/gists{/gist_id}","starred_url":"https://api.github.com/users/Clever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Clever/subscriptions","organizations_url":"https://api.github.com/users/Clever/orgs","repos_url":"https://api.github.com/users/Clever/repos","events_url":"https://api.github.com/users/Clever/events{/privacy}","received_events_url":"https://api.github.com/users/Clever/received_events","type":"Organization","site_admin":false},"repo":{"id":65332703,"name":"wag","full_name":"Clever/wag","owner":{"login":"Clever","id":1885509,"avatar_url":"https://avatars.githubusercontent.com/u/1885509?v=3","gravatar_id":"","url":"https://api.github.com/users/Clever","html_url":"https://github.com/Clever","followers_url":"https://api.github.com/users/Clever/followers","following_url":"https://api.github.com/users/Clever/following{/other_user}","gists_url":"https://api.github.com/users/Clever/gists{/gist_id}","starred_url":"https://api.github.com/users/Clever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Clever/subscriptions","organizations_url":"https://api.github.com/users/Clever/orgs","repos_url":"https://api.github.com/users/Clever/repos","events_url":"https://api.github.com/users/Clever/events{/privacy}","received_events_url":"https://api.github.com/users/Clever/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Clever/wag","description":"sWAGger - Web API Generator","fork":false,"url":"https://api.github.com/repos/Clever/wag","forks_url":"https://api.github.com/repos/Clever/wag/forks","keys_url":"https://api.github.com/repos/Clever/wag/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Clever/wag/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Clever/wag/teams","hooks_url":"https://api.github.com/repos/Clever/wag/hooks","issue_events_url":"https://api.github.com/repos/Clever/wag/issues/events{/number}","events_url":"https://api.github.com/repos/Clever/wag/events","assignees_url":"https://api.github.com/repos/Clever/wag/assignees{/user}","branches_url":"https://api.github.com/repos/Clever/wag/branches{/branch}","tags_url":"https://api.github.com/repos/Clever/wag/tags","blobs_url":"https://api.github.com/repos/Clever/wag/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Clever/wag/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Clever/wag/git/refs{/sha}","trees_url":"https://api.github.com/repos/Clever/wag/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Clever/wag/statuses/{sha}","languages_url":"https://api.github.com/repos/Clever/wag/languages","stargazers_url":"https://api.github.com/repos/Clever/wag/stargazers","contributors_url":"https://api.github.com/repos/Clever/wag/contributors","subscribers_url":"https://api.github.com/repos/Clever/wag/subscribers","subscription_url":"https://api.github.com/repos/Clever/wag/subscription","commits_url":"https://api.github.com/repos/Clever/wag/commits{/sha}","git_commits_url":"https://api.github.com/repos/Clever/wag/git/commits{/sha}","comments_url":"https://api.github.com/repos/Clever/wag/comments{/number}","issue_comment_url":"https://api.github.com/repos/Clever/wag/issues/comments{/number}","contents_url":"https://api.github.com/repos/Clever/wag/contents/{+path}","compare_url":"https://api.github.com/repos/Clever/wag/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Clever/wag/merges","archive_url":"https://api.github.com/repos/Clever/wag/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Clever/wag/downloads","issues_url":"https://api.github.com/repos/Clever/wag/issues{/number}","pulls_url":"https://api.github.com/repos/Clever/wag/pulls{/number}","milestones_url":"https://api.github.com/repos/Clever/wag/milestones{/number}","notifications_url":"https://api.github.com/repos/Clever/wag/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Clever/wag/labels{/name}","releases_url":"https://api.github.com/repos/Clever/wag/releases{/id}","deployments_url":"https://api.github.com/repos/Clever/wag/deployments","created_at":"2016-08-09T22:34:45Z","updated_at":"2016-08-09T23:19:20Z","pushed_at":"2016-09-01T14:26:48Z","git_url":"git://github.com/Clever/wag.git","ssh_url":"git@github.com:Clever/wag.git","clone_url":"https://github.com/Clever/wag.git","svn_url":"https://github.com/Clever/wag","homepage":null,"size":11350,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Clever/wag/pulls/39"},"html":{"href":"https://github.com/Clever/wag/pull/39"},"issue":{"href":"https://api.github.com/repos/Clever/wag/issues/39"},"comments":{"href":"https://api.github.com/repos/Clever/wag/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/Clever/wag/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/Clever/wag/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Clever/wag/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/Clever/wag/statuses/b0e0b1ea66fab3ae49070310a4fd4f6a354f08f2"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"rgarcia","id":72655,"avatar_url":"https://avatars.githubusercontent.com/u/72655?v=3","gravatar_id":"","url":"https://api.github.com/users/rgarcia","html_url":"https://github.com/rgarcia","followers_url":"https://api.github.com/users/rgarcia/followers","following_url":"https://api.github.com/users/rgarcia/following{/other_user}","gists_url":"https://api.github.com/users/rgarcia/gists{/gist_id}","starred_url":"https://api.github.com/users/rgarcia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgarcia/subscriptions","organizations_url":"https://api.github.com/users/rgarcia/orgs","repos_url":"https://api.github.com/users/rgarcia/repos","events_url":"https://api.github.com/users/rgarcia/events{/privacy}","received_events_url":"https://api.github.com/users/rgarcia/received_events","type":"User","site_admin":false},"comments":1,"review_comments":9,"commits":1,"additions":115,"deletions":55,"changed_files":13}}
{"actor":{"display_login":"rgarcia"}}