{"action":"created","comment":{"url":"https://api.github.com/repos/Yelp/bravado-core/pulls/comments/54629491","id":54629491,"diff_hunk":"@@ -88,12 +88,17 @@ def operation_id(self):\n             self._operation_id = deref(self.op_spec.get('operationId'))\n             if self._operation_id is None:\n                 # build based on the http method and request path\n-                self._operation_id = (self.http_method + '_' + self.path_name)\\\n-                    .replace('/', '_')\\\n-                    .replace('{', '_')\\\n-                    .replace('}', '_')\\\n-                    .replace('__', '_')\\\n-                    .strip('_')\n+                self._operation_id = (self.http_method + '_' + self.path_name)\n+\n+        # Sanitize operation ID\n+        self._operation_id = self._operation_id.replace(' ', '_')\\","path":"bravado_core/operation.py","position":13,"original_position":13,"commit_id":"c84b7cc0de33f6c2f345bf4461cf629e9216c235","original_commit_id":"c84b7cc0de33f6c2f345bf4461cf629e9216c235","user":{"login":"analogue","id":26757,"avatar_url":"https://avatars.githubusercontent.com/u/26757?v=3","gravatar_id":"","url":"https://api.github.com/users/analogue","html_url":"https://github.com/analogue","followers_url":"https://api.github.com/users/analogue/followers","following_url":"https://api.github.com/users/analogue/following{/other_user}","gists_url":"https://api.github.com/users/analogue/gists{/gist_id}","starred_url":"https://api.github.com/users/analogue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/analogue/subscriptions","organizations_url":"https://api.github.com/users/analogue/orgs","repos_url":"https://api.github.com/users/analogue/repos","events_url":"https://api.github.com/users/analogue/events{/privacy}","received_events_url":"https://api.github.com/users/analogue/received_events","type":"User","site_admin":false},"body":"No need to sanitize more than once.","created_at":"2016-03-01T20:24:43Z","updated_at":"2016-03-01T20:24:43Z","html_url":"https://github.com/Yelp/bravado-core/pull/76#discussion_r54629491","pull_request_url":"https://api.github.com/repos/Yelp/bravado-core/pulls/76","_links":{"self":{"href":"https://api.github.com/repos/Yelp/bravado-core/pulls/comments/54629491"},"html":{"href":"https://github.com/Yelp/bravado-core/pull/76#discussion_r54629491"},"pull_request":{"href":"https://api.github.com/repos/Yelp/bravado-core/pulls/76"}}},"pull_request":{"url":"https://api.github.com/repos/Yelp/bravado-core/pulls/76","id":61218068,"html_url":"https://github.com/Yelp/bravado-core/pull/76","diff_url":"https://github.com/Yelp/bravado-core/pull/76.diff","patch_url":"https://github.com/Yelp/bravado-core/pull/76.patch","issue_url":"https://api.github.com/repos/Yelp/bravado-core/issues/76","number":76,"state":"open","locked":false,"title":"Sanitize operationId","user":{"login":"cyprieng","id":2521188,"avatar_url":"https://avatars.githubusercontent.com/u/2521188?v=3","gravatar_id":"","url":"https://api.github.com/users/cyprieng","html_url":"https://github.com/cyprieng","followers_url":"https://api.github.com/users/cyprieng/followers","following_url":"https://api.github.com/users/cyprieng/following{/other_user}","gists_url":"https://api.github.com/users/cyprieng/gists{/gist_id}","starred_url":"https://api.github.com/users/cyprieng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyprieng/subscriptions","organizations_url":"https://api.github.com/users/cyprieng/orgs","repos_url":"https://api.github.com/users/cyprieng/repos","events_url":"https://api.github.com/users/cyprieng/events{/privacy}","received_events_url":"https://api.github.com/users/cyprieng/received_events","type":"User","site_admin":false},"body":"See Yelp/bravado#189","created_at":"2016-03-01T10:00:52Z","updated_at":"2016-03-01T20:24:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b6c81a2109b5f024c31cb2178948a7db35466f09","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Yelp/bravado-core/pulls/76/commits","review_comments_url":"https://api.github.com/repos/Yelp/bravado-core/pulls/76/comments","review_comment_url":"https://api.github.com/repos/Yelp/bravado-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Yelp/bravado-core/issues/76/comments","statuses_url":"https://api.github.com/repos/Yelp/bravado-core/statuses/c84b7cc0de33f6c2f345bf4461cf629e9216c235","head":{"label":"cyprieng:sanitize-operationid","ref":"sanitize-operationid","sha":"c84b7cc0de33f6c2f345bf4461cf629e9216c235","user":{"login":"cyprieng","id":2521188,"avatar_url":"https://avatars.githubusercontent.com/u/2521188?v=3","gravatar_id":"","url":"https://api.github.com/users/cyprieng","html_url":"https://github.com/cyprieng","followers_url":"https://api.github.com/users/cyprieng/followers","following_url":"https://api.github.com/users/cyprieng/following{/other_user}","gists_url":"https://api.github.com/users/cyprieng/gists{/gist_id}","starred_url":"https://api.github.com/users/cyprieng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyprieng/subscriptions","organizations_url":"https://api.github.com/users/cyprieng/orgs","repos_url":"https://api.github.com/users/cyprieng/repos","events_url":"https://api.github.com/users/cyprieng/events{/privacy}","received_events_url":"https://api.github.com/users/cyprieng/received_events","type":"User","site_admin":false},"repo":{"id":52865211,"name":"bravado-core","full_name":"cyprieng/bravado-core","owner":{"login":"cyprieng","id":2521188,"avatar_url":"https://avatars.githubusercontent.com/u/2521188?v=3","gravatar_id":"","url":"https://api.github.com/users/cyprieng","html_url":"https://github.com/cyprieng","followers_url":"https://api.github.com/users/cyprieng/followers","following_url":"https://api.github.com/users/cyprieng/following{/other_user}","gists_url":"https://api.github.com/users/cyprieng/gists{/gist_id}","starred_url":"https://api.github.com/users/cyprieng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyprieng/subscriptions","organizations_url":"https://api.github.com/users/cyprieng/orgs","repos_url":"https://api.github.com/users/cyprieng/repos","events_url":"https://api.github.com/users/cyprieng/events{/privacy}","received_events_url":"https://api.github.com/users/cyprieng/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cyprieng/bravado-core","description":"","fork":true,"url":"https://api.github.com/repos/cyprieng/bravado-core","forks_url":"https://api.github.com/repos/cyprieng/bravado-core/forks","keys_url":"https://api.github.com/repos/cyprieng/bravado-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cyprieng/bravado-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cyprieng/bravado-core/teams","hooks_url":"https://api.github.com/repos/cyprieng/bravado-core/hooks","issue_events_url":"https://api.github.com/repos/cyprieng/bravado-core/issues/events{/number}","events_url":"https://api.github.com/repos/cyprieng/bravado-core/events","assignees_url":"https://api.github.com/repos/cyprieng/bravado-core/assignees{/user}","branches_url":"https://api.github.com/repos/cyprieng/bravado-core/branches{/branch}","tags_url":"https://api.github.com/repos/cyprieng/bravado-core/tags","blobs_url":"https://api.github.com/repos/cyprieng/bravado-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cyprieng/bravado-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cyprieng/bravado-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/cyprieng/bravado-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cyprieng/bravado-core/statuses/{sha}","languages_url":"https://api.github.com/repos/cyprieng/bravado-core/languages","stargazers_url":"https://api.github.com/repos/cyprieng/bravado-core/stargazers","contributors_url":"https://api.github.com/repos/cyprieng/bravado-core/contributors","subscribers_url":"https://api.github.com/repos/cyprieng/bravado-core/subscribers","subscription_url":"https://api.github.com/repos/cyprieng/bravado-core/subscription","commits_url":"https://api.github.com/repos/cyprieng/bravado-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/cyprieng/bravado-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/cyprieng/bravado-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/cyprieng/bravado-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/cyprieng/bravado-core/contents/{+path}","compare_url":"https://api.github.com/repos/cyprieng/bravado-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cyprieng/bravado-core/merges","archive_url":"https://api.github.com/repos/cyprieng/bravado-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cyprieng/bravado-core/downloads","issues_url":"https://api.github.com/repos/cyprieng/bravado-core/issues{/number}","pulls_url":"https://api.github.com/repos/cyprieng/bravado-core/pulls{/number}","milestones_url":"https://api.github.com/repos/cyprieng/bravado-core/milestones{/number}","notifications_url":"https://api.github.com/repos/cyprieng/bravado-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cyprieng/bravado-core/labels{/name}","releases_url":"https://api.github.com/repos/cyprieng/bravado-core/releases{/id}","deployments_url":"https://api.github.com/repos/cyprieng/bravado-core/deployments","created_at":"2016-03-01T09:37:43Z","updated_at":"2016-03-01T09:37:44Z","pushed_at":"2016-03-01T09:58:19Z","git_url":"git://github.com/cyprieng/bravado-core.git","ssh_url":"git@github.com:cyprieng/bravado-core.git","clone_url":"https://github.com/cyprieng/bravado-core.git","svn_url":"https://github.com/cyprieng/bravado-core","homepage":null,"size":1113,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Yelp:master","ref":"master","sha":"764066bf62fee35a57ad3ef6d296c2e8d20e371e","user":{"login":"Yelp","id":49071,"avatar_url":"https://avatars.githubusercontent.com/u/49071?v=3","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"repo":{"id":33146014,"name":"bravado-core","full_name":"Yelp/bravado-core","owner":{"login":"Yelp","id":49071,"avatar_url":"https://avatars.githubusercontent.com/u/49071?v=3","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Yelp/bravado-core","description":"","fork":false,"url":"https://api.github.com/repos/Yelp/bravado-core","forks_url":"https://api.github.com/repos/Yelp/bravado-core/forks","keys_url":"https://api.github.com/repos/Yelp/bravado-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yelp/bravado-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yelp/bravado-core/teams","hooks_url":"https://api.github.com/repos/Yelp/bravado-core/hooks","issue_events_url":"https://api.github.com/repos/Yelp/bravado-core/issues/events{/number}","events_url":"https://api.github.com/repos/Yelp/bravado-core/events","assignees_url":"https://api.github.com/repos/Yelp/bravado-core/assignees{/user}","branches_url":"https://api.github.com/repos/Yelp/bravado-core/branches{/branch}","tags_url":"https://api.github.com/repos/Yelp/bravado-core/tags","blobs_url":"https://api.github.com/repos/Yelp/bravado-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yelp/bravado-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yelp/bravado-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yelp/bravado-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yelp/bravado-core/statuses/{sha}","languages_url":"https://api.github.com/repos/Yelp/bravado-core/languages","stargazers_url":"https://api.github.com/repos/Yelp/bravado-core/stargazers","contributors_url":"https://api.github.com/repos/Yelp/bravado-core/contributors","subscribers_url":"https://api.github.com/repos/Yelp/bravado-core/subscribers","subscription_url":"https://api.github.com/repos/Yelp/bravado-core/subscription","commits_url":"https://api.github.com/repos/Yelp/bravado-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yelp/bravado-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yelp/bravado-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yelp/bravado-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yelp/bravado-core/contents/{+path}","compare_url":"https://api.github.com/repos/Yelp/bravado-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yelp/bravado-core/merges","archive_url":"https://api.github.com/repos/Yelp/bravado-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yelp/bravado-core/downloads","issues_url":"https://api.github.com/repos/Yelp/bravado-core/issues{/number}","pulls_url":"https://api.github.com/repos/Yelp/bravado-core/pulls{/number}","milestones_url":"https://api.github.com/repos/Yelp/bravado-core/milestones{/number}","notifications_url":"https://api.github.com/repos/Yelp/bravado-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yelp/bravado-core/labels{/name}","releases_url":"https://api.github.com/repos/Yelp/bravado-core/releases{/id}","deployments_url":"https://api.github.com/repos/Yelp/bravado-core/deployments","created_at":"2015-03-30T20:23:27Z","updated_at":"2016-02-16T00:09:22Z","pushed_at":"2016-03-01T15:57:00Z","git_url":"git://github.com/Yelp/bravado-core.git","ssh_url":"git@github.com:Yelp/bravado-core.git","clone_url":"https://github.com/Yelp/bravado-core.git","svn_url":"https://github.com/Yelp/bravado-core","homepage":null,"size":1167,"stargazers_count":13,"watchers_count":13,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":16,"forks":19,"open_issues":16,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Yelp/bravado-core/pulls/76"},"html":{"href":"https://github.com/Yelp/bravado-core/pull/76"},"issue":{"href":"https://api.github.com/repos/Yelp/bravado-core/issues/76"},"comments":{"href":"https://api.github.com/repos/Yelp/bravado-core/issues/76/comments"},"review_comments":{"href":"https://api.github.com/repos/Yelp/bravado-core/pulls/76/comments"},"review_comment":{"href":"https://api.github.com/repos/Yelp/bravado-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Yelp/bravado-core/pulls/76/commits"},"statuses":{"href":"https://api.github.com/repos/Yelp/bravado-core/statuses/c84b7cc0de33f6c2f345bf4461cf629e9216c235"}}}}