{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/azure-open-api-validator/pulls/comments/118117609","pull_request_review_id":39880835,"id":118117609,"diff_hunk":"@@ -0,0 +1,50 @@\n+/*---------------------------------------------------------------------------------------------\n+ *  Copyright (c) Microsoft Corporation. All rights reserved.\n+ *  Licensed under the MIT License. See License.txt in the project root for license information.\n+ *--------------------------------------------------------------------------------------------*/\n+import { nodes } from \"jsonpath\";\n+import { Message } from \"../jsonrpc/types\";\n+import { rules, OpenApiTypes, MergeStates } from \"./rule\";\n+\n+// register rules\n+require(\"./rules/DescriptionMustNotBeNodeName\");\n+require(\"./rules/ControlCharactersAreNotAllowed\");\n+\n+export function run(document: string, openapiDefinition: any, sendMessage: (m: Message) => void, openapiType: OpenApiTypes = OpenApiTypes.arm, mergeState: MergeStates = MergeStates.composed) {\n+  let rulesToRun = rules.filter(rule => rule.mergeState === mergeState && (rule.openapiType & openapiType));","path":"src/azure-openapi-validator/index.ts","position":14,"original_position":14,"commit_id":"a08db1b82c6f276323be5622ce01e23116623177","original_commit_id":"a08db1b82c6f276323be5622ce01e23116623177","user":{"login":"sergey-shandar","id":902339,"avatar_url":"https://avatars1.githubusercontent.com/u/902339?v=3","gravatar_id":"","url":"https://api.github.com/users/sergey-shandar","html_url":"https://github.com/sergey-shandar","followers_url":"https://api.github.com/users/sergey-shandar/followers","following_url":"https://api.github.com/users/sergey-shandar/following{/other_user}","gists_url":"https://api.github.com/users/sergey-shandar/gists{/gist_id}","starred_url":"https://api.github.com/users/sergey-shandar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergey-shandar/subscriptions","organizations_url":"https://api.github.com/users/sergey-shandar/orgs","repos_url":"https://api.github.com/users/sergey-shandar/repos","events_url":"https://api.github.com/users/sergey-shandar/events{/privacy}","received_events_url":"https://api.github.com/users/sergey-shandar/received_events","type":"User","site_admin":false},"body":"nit: `const rules = ...`","created_at":"2017-05-23T22:02:55Z","updated_at":"2017-05-23T22:22:33Z","html_url":"https://github.com/Azure/azure-open-api-validator/pull/1#discussion_r118117609","pull_request_url":"https://api.github.com/repos/Azure/azure-open-api-validator/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-open-api-validator/pulls/comments/118117609"},"html":{"href":"https://github.com/Azure/azure-open-api-validator/pull/1#discussion_r118117609"},"pull_request":{"href":"https://api.github.com/repos/Azure/azure-open-api-validator/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Azure/azure-open-api-validator/pulls/1","id":121885716,"html_url":"https://github.com/Azure/azure-open-api-validator/pull/1","diff_url":"https://github.com/Azure/azure-open-api-validator/pull/1.diff","patch_url":"https://github.com/Azure/azure-open-api-validator/pull/1.patch","issue_url":"https://api.github.com/repos/Azure/azure-open-api-validator/issues/1","number":1,"state":"open","locked":false,"title":"Added rules and build scripts","user":{"login":"dsgouda","id":14796031,"avatar_url":"https://avatars1.githubusercontent.com/u/14796031?v=3","gravatar_id":"","url":"https://api.github.com/users/dsgouda","html_url":"https://github.com/dsgouda","followers_url":"https://api.github.com/users/dsgouda/followers","following_url":"https://api.github.com/users/dsgouda/following{/other_user}","gists_url":"https://api.github.com/users/dsgouda/gists{/gist_id}","starred_url":"https://api.github.com/users/dsgouda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsgouda/subscriptions","organizations_url":"https://api.github.com/users/dsgouda/orgs","repos_url":"https://api.github.com/users/dsgouda/repos","events_url":"https://api.github.com/users/dsgouda/events{/privacy}","received_events_url":"https://api.github.com/users/dsgouda/received_events","type":"User","site_admin":false},"body":"Opening a brand new PR for a brand new Repo","created_at":"2017-05-22T23:31:59Z","updated_at":"2017-05-23T22:22:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bc3d1ea81e1eda4c100d1ec449cca255f391548a","assignee":null,"assignees":[],"requested_reviewers":[{"login":"vishrutshah","id":8782776,"avatar_url":"https://avatars3.githubusercontent.com/u/8782776?v=3","gravatar_id":"","url":"https://api.github.com/users/vishrutshah","html_url":"https://github.com/vishrutshah","followers_url":"https://api.github.com/users/vishrutshah/followers","following_url":"https://api.github.com/users/vishrutshah/following{/other_user}","gists_url":"https://api.github.com/users/vishrutshah/gists{/gist_id}","starred_url":"https://api.github.com/users/vishrutshah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vishrutshah/subscriptions","organizations_url":"https://api.github.com/users/vishrutshah/orgs","repos_url":"https://api.github.com/users/vishrutshah/repos","events_url":"https://api.github.com/users/vishrutshah/events{/privacy}","received_events_url":"https://api.github.com/users/vishrutshah/received_events","type":"User","site_admin":false},{"login":"veronicagg","id":17714137,"avatar_url":"https://avatars1.githubusercontent.com/u/17714137?v=3","gravatar_id":"","url":"https://api.github.com/users/veronicagg","html_url":"https://github.com/veronicagg","followers_url":"https://api.github.com/users/veronicagg/followers","following_url":"https://api.github.com/users/veronicagg/following{/other_user}","gists_url":"https://api.github.com/users/veronicagg/gists{/gist_id}","starred_url":"https://api.github.com/users/veronicagg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veronicagg/subscriptions","organizations_url":"https://api.github.com/users/veronicagg/orgs","repos_url":"https://api.github.com/users/veronicagg/repos","events_url":"https://api.github.com/users/veronicagg/events{/privacy}","received_events_url":"https://api.github.com/users/veronicagg/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-open-api-validator/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-open-api-validator/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Azure/azure-open-api-validator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/azure-open-api-validator/issues/1/comments","statuses_url":"https://api.github.com/repos/Azure/azure-open-api-validator/statuses/a08db1b82c6f276323be5622ce01e23116623177","head":{"label":"dsgouda:init","ref":"init","sha":"a08db1b82c6f276323be5622ce01e23116623177","user":{"login":"dsgouda","id":14796031,"avatar_url":"https://avatars1.githubusercontent.com/u/14796031?v=3","gravatar_id":"","url":"https://api.github.com/users/dsgouda","html_url":"https://github.com/dsgouda","followers_url":"https://api.github.com/users/dsgouda/followers","following_url":"https://api.github.com/users/dsgouda/following{/other_user}","gists_url":"https://api.github.com/users/dsgouda/gists{/gist_id}","starred_url":"https://api.github.com/users/dsgouda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsgouda/subscriptions","organizations_url":"https://api.github.com/users/dsgouda/orgs","repos_url":"https://api.github.com/users/dsgouda/repos","events_url":"https://api.github.com/users/dsgouda/events{/privacy}","received_events_url":"https://api.github.com/users/dsgouda/received_events","type":"User","site_admin":false},"repo":{"id":92107843,"name":"azure-open-api-validator","full_name":"dsgouda/azure-open-api-validator","owner":{"login":"dsgouda","id":14796031,"avatar_url":"https://avatars1.githubusercontent.com/u/14796031?v=3","gravatar_id":"","url":"https://api.github.com/users/dsgouda","html_url":"https://github.com/dsgouda","followers_url":"https://api.github.com/users/dsgouda/followers","following_url":"https://api.github.com/users/dsgouda/following{/other_user}","gists_url":"https://api.github.com/users/dsgouda/gists{/gist_id}","starred_url":"https://api.github.com/users/dsgouda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsgouda/subscriptions","organizations_url":"https://api.github.com/users/dsgouda/orgs","repos_url":"https://api.github.com/users/dsgouda/repos","events_url":"https://api.github.com/users/dsgouda/events{/privacy}","received_events_url":"https://api.github.com/users/dsgouda/received_events","type":"User","site_admin":false},"private":true,"html_url":"https://github.com/dsgouda/azure-open-api-validator","description":"Azure Open API Validator ","fork":false,"url":"https://api.github.com/repos/dsgouda/azure-open-api-validator","forks_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/forks","keys_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/teams","hooks_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/hooks","issue_events_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/issues/events{/number}","events_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/events","assignees_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/assignees{/user}","branches_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/branches{/branch}","tags_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/tags","blobs_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/git/refs{/sha}","trees_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/statuses/{sha}","languages_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/languages","stargazers_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/stargazers","contributors_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/contributors","subscribers_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/subscribers","subscription_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/subscription","commits_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/commits{/sha}","git_commits_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/git/commits{/sha}","comments_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/comments{/number}","issue_comment_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/issues/comments{/number}","contents_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/contents/{+path}","compare_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/merges","archive_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/downloads","issues_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/issues{/number}","pulls_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/pulls{/number}","milestones_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/milestones{/number}","notifications_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/labels{/name}","releases_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/releases{/id}","deployments_url":"https://api.github.com/repos/dsgouda/azure-open-api-validator/deployments","created_at":"2017-05-22T23:21:41Z","updated_at":"2017-05-23T22:01:24Z","pushed_at":"2017-05-23T21:57:49Z","git_url":"git://github.com/dsgouda/azure-open-api-validator.git","ssh_url":"git@github.com:dsgouda/azure-open-api-validator.git","clone_url":"https://github.com/dsgouda/azure-open-api-validator.git","svn_url":"https://github.com/dsgouda/azure-open-api-validator","homepage":null,"size":47,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"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":"Azure:master","ref":"master","sha":"3ef654d132eefb39072f530e7567f2ac6ee4c9f8","user":{"login":"Azure","id":6844498,"avatar_url":"https://avatars3.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":92107536,"name":"azure-open-api-validator","full_name":"Azure/azure-open-api-validator","owner":{"login":"Azure","id":6844498,"avatar_url":"https://avatars3.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Azure/azure-open-api-validator","description":"Azure Open API Validator ","fork":false,"url":"https://api.github.com/repos/Azure/azure-open-api-validator","forks_url":"https://api.github.com/repos/Azure/azure-open-api-validator/forks","keys_url":"https://api.github.com/repos/Azure/azure-open-api-validator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/azure-open-api-validator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/azure-open-api-validator/teams","hooks_url":"https://api.github.com/repos/Azure/azure-open-api-validator/hooks","issue_events_url":"https://api.github.com/repos/Azure/azure-open-api-validator/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/azure-open-api-validator/events","assignees_url":"https://api.github.com/repos/Azure/azure-open-api-validator/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/azure-open-api-validator/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/azure-open-api-validator/tags","blobs_url":"https://api.github.com/repos/Azure/azure-open-api-validator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/azure-open-api-validator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/azure-open-api-validator/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/azure-open-api-validator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/azure-open-api-validator/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/azure-open-api-validator/languages","stargazers_url":"https://api.github.com/repos/Azure/azure-open-api-validator/stargazers","contributors_url":"https://api.github.com/repos/Azure/azure-open-api-validator/contributors","subscribers_url":"https://api.github.com/repos/Azure/azure-open-api-validator/subscribers","subscription_url":"https://api.github.com/repos/Azure/azure-open-api-validator/subscription","commits_url":"https://api.github.com/repos/Azure/azure-open-api-validator/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/azure-open-api-validator/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/azure-open-api-validator/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/azure-open-api-validator/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/azure-open-api-validator/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/azure-open-api-validator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/azure-open-api-validator/merges","archive_url":"https://api.github.com/repos/Azure/azure-open-api-validator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/azure-open-api-validator/downloads","issues_url":"https://api.github.com/repos/Azure/azure-open-api-validator/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/azure-open-api-validator/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/azure-open-api-validator/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/azure-open-api-validator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/azure-open-api-validator/labels{/name}","releases_url":"https://api.github.com/repos/Azure/azure-open-api-validator/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/azure-open-api-validator/deployments","created_at":"2017-05-22T23:16:15Z","updated_at":"2017-05-23T22:01:14Z","pushed_at":"2017-05-23T21:57:50Z","git_url":"git://github.com/Azure/azure-open-api-validator.git","ssh_url":"git@github.com:Azure/azure-open-api-validator.git","clone_url":"https://github.com/Azure/azure-open-api-validator.git","svn_url":"https://github.com/Azure/azure-open-api-validator","homepage":null,"size":1,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":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/Azure/azure-open-api-validator/pulls/1"},"html":{"href":"https://github.com/Azure/azure-open-api-validator/pull/1"},"issue":{"href":"https://api.github.com/repos/Azure/azure-open-api-validator/issues/1"},"comments":{"href":"https://api.github.com/repos/Azure/azure-open-api-validator/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-open-api-validator/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/azure-open-api-validator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/azure-open-api-validator/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-open-api-validator/statuses/a08db1b82c6f276323be5622ce01e23116623177"}}}}
{"actor":{"display_login":"sergey-shandar"}}