{"action":"created","issue":{"url":"https://api.github.com/repos/grpc-ecosystem/grpc-gateway/issues/671","repository_url":"https://api.github.com/repos/grpc-ecosystem/grpc-gateway","labels_url":"https://api.github.com/repos/grpc-ecosystem/grpc-gateway/issues/671/labels{/name}","comments_url":"https://api.github.com/repos/grpc-ecosystem/grpc-gateway/issues/671/comments","events_url":"https://api.github.com/repos/grpc-ecosystem/grpc-gateway/issues/671/events","html_url":"https://github.com/grpc-ecosystem/grpc-gateway/pull/671","id":333422645,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1NjM4ODg3","number":671,"title":"add patch behavior","user":{"login":"dmacthedestroyer","id":334661,"node_id":"MDQ6VXNlcjMzNDY2MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/334661?v=4","gravatar_id":"","url":"https://api.github.com/users/dmacthedestroyer","html_url":"https://github.com/dmacthedestroyer","followers_url":"https://api.github.com/users/dmacthedestroyer/followers","following_url":"https://api.github.com/users/dmacthedestroyer/following{/other_user}","gists_url":"https://api.github.com/users/dmacthedestroyer/gists{/gist_id}","starred_url":"https://api.github.com/users/dmacthedestroyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmacthedestroyer/subscriptions","organizations_url":"https://api.github.com/users/dmacthedestroyer/orgs","repos_url":"https://api.github.com/users/dmacthedestroyer/repos","events_url":"https://api.github.com/users/dmacthedestroyer/events{/privacy}","received_events_url":"https://api.github.com/users/dmacthedestroyer/received_events","type":"User","site_admin":false},"labels":[{"id":816045899,"node_id":"MDU6TGFiZWw4MTYwNDU4OTk=","url":"https://api.github.com/repos/grpc-ecosystem/grpc-gateway/labels/cla:%20yes","name":"cla: yes","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-18T20:28:03Z","updated_at":"2018-06-21T08:10:59Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/grpc-ecosystem/grpc-gateway/pulls/671","html_url":"https://github.com/grpc-ecosystem/grpc-gateway/pull/671","diff_url":"https://github.com/grpc-ecosystem/grpc-gateway/pull/671.diff","patch_url":"https://github.com/grpc-ecosystem/grpc-gateway/pull/671.patch"},"body":"this addresses #379 \r\n\r\nIf a binding is mapped to `patch` and the request message has exactly one `FieldMask` message in it, additional code is rendered for the gateway handler that will populate the `FieldMask` based on the request body.\r\n\r\nThis handles two scenarios:\r\n*The FieldMask is hidden from the REST request* (as in the `UpdateV2` example). In this case, the FieldMask is updated from the request body and set in the gRPC request message.\r\n\r\n*The FieldMask is exposed to the REST request* (as in the `PatchWithFieldMaskInBody` example). For this case, a check is made as to whether the FieldMask is nil/empty prior to populating with the request body. If it's not nil, then it converts the FieldMask paths from the REST (snake_case) to gRPC (PascalCase) format. Otherwise, it acts like the previous case.\r\n\r\nAdditional comments of interest are inline on this PR."},"comment":{"url":"https://api.github.com/repos/grpc-ecosystem/grpc-gateway/issues/comments/399014931","html_url":"https://github.com/grpc-ecosystem/grpc-gateway/pull/671#issuecomment-399014931","issue_url":"https://api.github.com/repos/grpc-ecosystem/grpc-gateway/issues/671","id":399014931,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTAxNDkzMQ==","user":{"login":"johanbrandhorst","id":6604151,"node_id":"MDQ6VXNlcjY2MDQxNTE=","avatar_url":"https://avatars2.githubusercontent.com/u/6604151?v=4","gravatar_id":"","url":"https://api.github.com/users/johanbrandhorst","html_url":"https://github.com/johanbrandhorst","followers_url":"https://api.github.com/users/johanbrandhorst/followers","following_url":"https://api.github.com/users/johanbrandhorst/following{/other_user}","gists_url":"https://api.github.com/users/johanbrandhorst/gists{/gist_id}","starred_url":"https://api.github.com/users/johanbrandhorst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanbrandhorst/subscriptions","organizations_url":"https://api.github.com/users/johanbrandhorst/orgs","repos_url":"https://api.github.com/users/johanbrandhorst/repos","events_url":"https://api.github.com/users/johanbrandhorst/events{/privacy}","received_events_url":"https://api.github.com/users/johanbrandhorst/received_events","type":"User","site_admin":false},"created_at":"2018-06-21T08:10:59Z","updated_at":"2018-06-21T08:10:59Z","author_association":"COLLABORATOR","body":"This is a great contribution! Could you please squash the commits and make sure there's a single commit with a new title and description? It'll help us when writing release notes as well as for historical purposes of course."}}
{"actor":{"display_login":"johanbrandhorst"}}