{"action":"created","comment":{"url":"https://api.github.com/repos/Yelp/swagger_spec_validator/pulls/comments/33606802","id":33606802,"diff_hunk":"@@ -55,6 +55,10 @@ def validate_apis(apis):\n         api_params = api_body.get('parameters', [])\n         validate_duplicate_param(api_params)\n         for oper_name in api_body:\n+            # don't treat parameters that apply to all api operations as\n+            # an operation\n+            if oper_name == 'parameters':","path":"swagger_spec_validator/validator20.py","position":6,"original_position":6,"commit_id":"b05fae66adadd3815b2be2f208b568575ca7e743","original_commit_id":"b05fae66adadd3815b2be2f208b568575ca7e743","user":{"login":"prat0318","id":1528697,"avatar_url":"https://avatars.githubusercontent.com/u/1528697?v=3","gravatar_id":"","url":"https://api.github.com/users/prat0318","html_url":"https://github.com/prat0318","followers_url":"https://api.github.com/users/prat0318/followers","following_url":"https://api.github.com/users/prat0318/following{/other_user}","gists_url":"https://api.github.com/users/prat0318/gists{/gist_id}","starred_url":"https://api.github.com/users/prat0318/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prat0318/subscriptions","organizations_url":"https://api.github.com/users/prat0318/orgs","repos_url":"https://api.github.com/users/prat0318/repos","events_url":"https://api.github.com/users/prat0318/events{/privacy}","received_events_url":"https://api.github.com/users/prat0318/received_events","type":"User","site_admin":false},"body":"As per [2.0](https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#fixed-fields-4) `$ref` can also be a sibling, i suppose it would be referenced at this point?\r\n\r\nAs it is a swagger spec validator, we should disallow if `oper_name` is anything other than the given fixed fields (or are we checking it anywhere else)?","created_at":"2015-06-30T18:29:29Z","updated_at":"2015-06-30T18:29:29Z","html_url":"https://github.com/Yelp/swagger_spec_validator/pull/30#discussion_r33606802","pull_request_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/pulls/30","_links":{"self":{"href":"https://api.github.com/repos/Yelp/swagger_spec_validator/pulls/comments/33606802"},"html":{"href":"https://github.com/Yelp/swagger_spec_validator/pull/30#discussion_r33606802"},"pull_request":{"href":"https://api.github.com/repos/Yelp/swagger_spec_validator/pulls/30"}}},"pull_request":{"url":"https://api.github.com/repos/Yelp/swagger_spec_validator/pulls/30","id":38897296,"html_url":"https://github.com/Yelp/swagger_spec_validator/pull/30","diff_url":"https://github.com/Yelp/swagger_spec_validator/pull/30.diff","patch_url":"https://github.com/Yelp/swagger_spec_validator/pull/30.patch","issue_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/issues/30","number":30,"state":"open","locked":false,"title":"Fix api level parameters","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":"See the test for an explanation. This fixes one of the issues in #29\r\n\r\n@prat0318","created_at":"2015-06-30T16:26:55Z","updated_at":"2015-06-30T18:29:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3fb8270ce58fcd38a3693f6f45aa5220d275ab58","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/pulls/30/commits","review_comments_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/pulls/30/comments","review_comment_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/issues/30/comments","statuses_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/statuses/b05fae66adadd3815b2be2f208b568575ca7e743","head":{"label":"analogue:fix_api_level_parameters","ref":"fix_api_level_parameters","sha":"b05fae66adadd3815b2be2f208b568575ca7e743","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},"repo":{"id":29319832,"name":"swagger_spec_validator","full_name":"analogue/swagger_spec_validator","owner":{"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},"private":false,"html_url":"https://github.com/analogue/swagger_spec_validator","description":"","fork":true,"url":"https://api.github.com/repos/analogue/swagger_spec_validator","forks_url":"https://api.github.com/repos/analogue/swagger_spec_validator/forks","keys_url":"https://api.github.com/repos/analogue/swagger_spec_validator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/analogue/swagger_spec_validator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/analogue/swagger_spec_validator/teams","hooks_url":"https://api.github.com/repos/analogue/swagger_spec_validator/hooks","issue_events_url":"https://api.github.com/repos/analogue/swagger_spec_validator/issues/events{/number}","events_url":"https://api.github.com/repos/analogue/swagger_spec_validator/events","assignees_url":"https://api.github.com/repos/analogue/swagger_spec_validator/assignees{/user}","branches_url":"https://api.github.com/repos/analogue/swagger_spec_validator/branches{/branch}","tags_url":"https://api.github.com/repos/analogue/swagger_spec_validator/tags","blobs_url":"https://api.github.com/repos/analogue/swagger_spec_validator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/analogue/swagger_spec_validator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/analogue/swagger_spec_validator/git/refs{/sha}","trees_url":"https://api.github.com/repos/analogue/swagger_spec_validator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/analogue/swagger_spec_validator/statuses/{sha}","languages_url":"https://api.github.com/repos/analogue/swagger_spec_validator/languages","stargazers_url":"https://api.github.com/repos/analogue/swagger_spec_validator/stargazers","contributors_url":"https://api.github.com/repos/analogue/swagger_spec_validator/contributors","subscribers_url":"https://api.github.com/repos/analogue/swagger_spec_validator/subscribers","subscription_url":"https://api.github.com/repos/analogue/swagger_spec_validator/subscription","commits_url":"https://api.github.com/repos/analogue/swagger_spec_validator/commits{/sha}","git_commits_url":"https://api.github.com/repos/analogue/swagger_spec_validator/git/commits{/sha}","comments_url":"https://api.github.com/repos/analogue/swagger_spec_validator/comments{/number}","issue_comment_url":"https://api.github.com/repos/analogue/swagger_spec_validator/issues/comments{/number}","contents_url":"https://api.github.com/repos/analogue/swagger_spec_validator/contents/{+path}","compare_url":"https://api.github.com/repos/analogue/swagger_spec_validator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/analogue/swagger_spec_validator/merges","archive_url":"https://api.github.com/repos/analogue/swagger_spec_validator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/analogue/swagger_spec_validator/downloads","issues_url":"https://api.github.com/repos/analogue/swagger_spec_validator/issues{/number}","pulls_url":"https://api.github.com/repos/analogue/swagger_spec_validator/pulls{/number}","milestones_url":"https://api.github.com/repos/analogue/swagger_spec_validator/milestones{/number}","notifications_url":"https://api.github.com/repos/analogue/swagger_spec_validator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/analogue/swagger_spec_validator/labels{/name}","releases_url":"https://api.github.com/repos/analogue/swagger_spec_validator/releases{/id}","created_at":"2015-01-15T21:47:35Z","updated_at":"2015-01-15T21:47:36Z","pushed_at":"2015-06-30T17:18:32Z","git_url":"git://github.com/analogue/swagger_spec_validator.git","ssh_url":"git@github.com:analogue/swagger_spec_validator.git","clone_url":"https://github.com/analogue/swagger_spec_validator.git","svn_url":"https://github.com/analogue/swagger_spec_validator","homepage":null,"size":218,"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":"b206e83cfaf10b520c9c9535eb85a11f81092a96","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":28837384,"name":"swagger_spec_validator","full_name":"Yelp/swagger_spec_validator","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/swagger_spec_validator","description":"","fork":false,"url":"https://api.github.com/repos/Yelp/swagger_spec_validator","forks_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/forks","keys_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/teams","hooks_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/hooks","issue_events_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/issues/events{/number}","events_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/events","assignees_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/assignees{/user}","branches_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/branches{/branch}","tags_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/tags","blobs_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/statuses/{sha}","languages_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/languages","stargazers_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/stargazers","contributors_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/contributors","subscribers_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/subscribers","subscription_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/subscription","commits_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/contents/{+path}","compare_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/merges","archive_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/downloads","issues_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/issues{/number}","pulls_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/pulls{/number}","milestones_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/milestones{/number}","notifications_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/labels{/name}","releases_url":"https://api.github.com/repos/Yelp/swagger_spec_validator/releases{/id}","created_at":"2015-01-05T23:40:39Z","updated_at":"2015-06-29T23:20:40Z","pushed_at":"2015-06-30T17:19:07Z","git_url":"git://github.com/Yelp/swagger_spec_validator.git","ssh_url":"git@github.com:Yelp/swagger_spec_validator.git","clone_url":"https://github.com/Yelp/swagger_spec_validator.git","svn_url":"https://github.com/Yelp/swagger_spec_validator","homepage":null,"size":565,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":7,"forks":6,"open_issues":7,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Yelp/swagger_spec_validator/pulls/30"},"html":{"href":"https://github.com/Yelp/swagger_spec_validator/pull/30"},"issue":{"href":"https://api.github.com/repos/Yelp/swagger_spec_validator/issues/30"},"comments":{"href":"https://api.github.com/repos/Yelp/swagger_spec_validator/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/Yelp/swagger_spec_validator/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/Yelp/swagger_spec_validator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Yelp/swagger_spec_validator/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/Yelp/swagger_spec_validator/statuses/b05fae66adadd3815b2be2f208b568575ca7e743"}}}}