{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/autorest/pulls/comments/100948311","pull_request_review_id":21664842,"id":100948311,"diff_hunk":"@@ -0,0 +1,31 @@\n+﻿using AutoRest.Core.Validation;","path":"src/core/AutoRest.Core/Logging/JsonValidationLogListener.cs","position":null,"original_position":1,"commit_id":"35c06201b8c967599f6a1d5f7f0a1c6785b81143","original_commit_id":"1a512d79daa5ab845163c09f494fb40f91a5fafc","user":{"login":"olydis","id":9320958,"avatar_url":"https://avatars.githubusercontent.com/u/9320958?v=3","gravatar_id":"","url":"https://api.github.com/users/olydis","html_url":"https://github.com/olydis","followers_url":"https://api.github.com/users/olydis/followers","following_url":"https://api.github.com/users/olydis/following{/other_user}","gists_url":"https://api.github.com/users/olydis/gists{/gist_id}","starred_url":"https://api.github.com/users/olydis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olydis/subscriptions","organizations_url":"https://api.github.com/users/olydis/orgs","repos_url":"https://api.github.com/users/olydis/repos","events_url":"https://api.github.com/users/olydis/events{/privacy}","received_events_url":"https://api.github.com/users/olydis/received_events","type":"User","site_admin":false},"body":"done","created_at":"2017-02-14T02:24:46Z","updated_at":"2017-02-14T02:24:46Z","html_url":"https://github.com/Azure/autorest/pull/1809#discussion_r100948311","pull_request_url":"https://api.github.com/repos/Azure/autorest/pulls/1809","_links":{"self":{"href":"https://api.github.com/repos/Azure/autorest/pulls/comments/100948311"},"html":{"href":"https://github.com/Azure/autorest/pull/1809#discussion_r100948311"},"pull_request":{"href":"https://api.github.com/repos/Azure/autorest/pulls/1809"}}},"pull_request":{"url":"https://api.github.com/repos/Azure/autorest/pulls/1809","id":105530779,"html_url":"https://github.com/Azure/autorest/pull/1809","diff_url":"https://github.com/Azure/autorest/pull/1809.diff","patch_url":"https://github.com/Azure/autorest/pull/1809.patch","issue_url":"https://api.github.com/repos/Azure/autorest/issues/1809","number":1809,"state":"open","locked":false,"title":"Json mode for validation messages","user":{"login":"olydis","id":9320958,"avatar_url":"https://avatars.githubusercontent.com/u/9320958?v=3","gravatar_id":"","url":"https://api.github.com/users/olydis","html_url":"https://github.com/olydis","followers_url":"https://api.github.com/users/olydis/followers","following_url":"https://api.github.com/users/olydis/following{/other_user}","gists_url":"https://api.github.com/users/olydis/gists{/gist_id}","starred_url":"https://api.github.com/users/olydis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olydis/subscriptions","organizations_url":"https://api.github.com/users/olydis/orgs","repos_url":"https://api.github.com/users/olydis/repos","events_url":"https://api.github.com/users/olydis/events{/privacy}","received_events_url":"https://api.github.com/users/olydis/received_events","type":"User","site_admin":false},"body":"Here you go Mr. @amarzavery!\r\nUse `-JsonValidationMessages` switch to get console output such as\r\n```json5\r\n[\r\n  {\r\n    \"type\": \"Warning\",\r\n    \"code\": \"LongRunningResponseValidation\",\r\n    \"message\": \"An operation with x-ms-long-running-operation extension must have a valid terminal success status code. 200 or 201 for Put/Patch. 200, 201 or 204 for Post. 200 or 204 or both for Delete.\",\r\n    \"jsonref\": \"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-cdn/2016-10-02/swagger/cdn.json#/paths/~1subscriptions~1{subscriptionId}~1resourceGroups~1{resourceGroupName}~1providers~1Microsoft.Cdn~1profiles~1{profileName}~1endpoints~1{endpointName}~1start/post/extensions/x-ms-long-running-operation\"\r\n  },\r\n  {\r\n    \"type\": \"Warning\",\r\n    \"code\": \"InvalidConstraint\",\r\n    \"message\": \"Constraint is not supported for this type and will be ignored.\",\r\n    \"jsonref\": \"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-cdn/2016-10-02/swagger/cdn.json#/parameters/resourceGroupNameParameter/minLength\"\r\n  },\r\n  {\r\n    \"type\": \"Warning\",\r\n    \"code\": \"InvalidConstraint\",\r\n    \"message\": \"Constraint is not supported for this type and will be ignored.\",\r\n    \"jsonref\": \"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-cdn/2016-10-02/swagger/cdn.json#/parameters/resourceGroupNameParameter/pattern\"\r\n  }\r\n]\r\n```\r\n\r\nCareful: Since logging to the console is disabled in that mode, there will be no console output if anything goes wrong.","created_at":"2017-02-09T22:50:28Z","updated_at":"2017-02-14T02:24:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dcbdd51df708a8d873409e8b15c203aad4fe95cd","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Azure/autorest/pulls/1809/commits","review_comments_url":"https://api.github.com/repos/Azure/autorest/pulls/1809/comments","review_comment_url":"https://api.github.com/repos/Azure/autorest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/autorest/issues/1809/comments","statuses_url":"https://api.github.com/repos/Azure/autorest/statuses/35c06201b8c967599f6a1d5f7f0a1c6785b81143","head":{"label":"olydis:json-mode","ref":"json-mode","sha":"35c06201b8c967599f6a1d5f7f0a1c6785b81143","user":{"login":"olydis","id":9320958,"avatar_url":"https://avatars.githubusercontent.com/u/9320958?v=3","gravatar_id":"","url":"https://api.github.com/users/olydis","html_url":"https://github.com/olydis","followers_url":"https://api.github.com/users/olydis/followers","following_url":"https://api.github.com/users/olydis/following{/other_user}","gists_url":"https://api.github.com/users/olydis/gists{/gist_id}","starred_url":"https://api.github.com/users/olydis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olydis/subscriptions","organizations_url":"https://api.github.com/users/olydis/orgs","repos_url":"https://api.github.com/users/olydis/repos","events_url":"https://api.github.com/users/olydis/events{/privacy}","received_events_url":"https://api.github.com/users/olydis/received_events","type":"User","site_admin":false},"repo":{"id":72489217,"name":"autorest","full_name":"olydis/autorest","owner":{"login":"olydis","id":9320958,"avatar_url":"https://avatars.githubusercontent.com/u/9320958?v=3","gravatar_id":"","url":"https://api.github.com/users/olydis","html_url":"https://github.com/olydis","followers_url":"https://api.github.com/users/olydis/followers","following_url":"https://api.github.com/users/olydis/following{/other_user}","gists_url":"https://api.github.com/users/olydis/gists{/gist_id}","starred_url":"https://api.github.com/users/olydis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olydis/subscriptions","organizations_url":"https://api.github.com/users/olydis/orgs","repos_url":"https://api.github.com/users/olydis/repos","events_url":"https://api.github.com/users/olydis/events{/privacy}","received_events_url":"https://api.github.com/users/olydis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/olydis/autorest","description":"Swagger (OpenAPI) Specification code generator featuring C# and Razor templates. Supports C#, Java, Node.js, TypeScript, Python and Ruby.","fork":true,"url":"https://api.github.com/repos/olydis/autorest","forks_url":"https://api.github.com/repos/olydis/autorest/forks","keys_url":"https://api.github.com/repos/olydis/autorest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/olydis/autorest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/olydis/autorest/teams","hooks_url":"https://api.github.com/repos/olydis/autorest/hooks","issue_events_url":"https://api.github.com/repos/olydis/autorest/issues/events{/number}","events_url":"https://api.github.com/repos/olydis/autorest/events","assignees_url":"https://api.github.com/repos/olydis/autorest/assignees{/user}","branches_url":"https://api.github.com/repos/olydis/autorest/branches{/branch}","tags_url":"https://api.github.com/repos/olydis/autorest/tags","blobs_url":"https://api.github.com/repos/olydis/autorest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/olydis/autorest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/olydis/autorest/git/refs{/sha}","trees_url":"https://api.github.com/repos/olydis/autorest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/olydis/autorest/statuses/{sha}","languages_url":"https://api.github.com/repos/olydis/autorest/languages","stargazers_url":"https://api.github.com/repos/olydis/autorest/stargazers","contributors_url":"https://api.github.com/repos/olydis/autorest/contributors","subscribers_url":"https://api.github.com/repos/olydis/autorest/subscribers","subscription_url":"https://api.github.com/repos/olydis/autorest/subscription","commits_url":"https://api.github.com/repos/olydis/autorest/commits{/sha}","git_commits_url":"https://api.github.com/repos/olydis/autorest/git/commits{/sha}","comments_url":"https://api.github.com/repos/olydis/autorest/comments{/number}","issue_comment_url":"https://api.github.com/repos/olydis/autorest/issues/comments{/number}","contents_url":"https://api.github.com/repos/olydis/autorest/contents/{+path}","compare_url":"https://api.github.com/repos/olydis/autorest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/olydis/autorest/merges","archive_url":"https://api.github.com/repos/olydis/autorest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/olydis/autorest/downloads","issues_url":"https://api.github.com/repos/olydis/autorest/issues{/number}","pulls_url":"https://api.github.com/repos/olydis/autorest/pulls{/number}","milestones_url":"https://api.github.com/repos/olydis/autorest/milestones{/number}","notifications_url":"https://api.github.com/repos/olydis/autorest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/olydis/autorest/labels{/name}","releases_url":"https://api.github.com/repos/olydis/autorest/releases{/id}","deployments_url":"https://api.github.com/repos/olydis/autorest/deployments","created_at":"2016-11-01T00:22:42Z","updated_at":"2016-12-17T02:32:02Z","pushed_at":"2017-02-14T02:24:41Z","git_url":"git://github.com/olydis/autorest.git","ssh_url":"git@github.com:olydis/autorest.git","clone_url":"https://github.com/olydis/autorest.git","svn_url":"https://github.com/olydis/autorest","homepage":"","size":60083,"stargazers_count":1,"watchers_count":1,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"Azure:master","ref":"master","sha":"15afad53b7c7c3a02b5d2e2895bf17d41423c285","user":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.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":31089461,"name":"autorest","full_name":"Azure/autorest","owner":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.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/autorest","description":"Swagger (OpenAPI) Specification code generator featuring C# and Razor templates. Supports C#, Java, Node.js, TypeScript, Python and Ruby.","fork":false,"url":"https://api.github.com/repos/Azure/autorest","forks_url":"https://api.github.com/repos/Azure/autorest/forks","keys_url":"https://api.github.com/repos/Azure/autorest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/autorest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/autorest/teams","hooks_url":"https://api.github.com/repos/Azure/autorest/hooks","issue_events_url":"https://api.github.com/repos/Azure/autorest/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/autorest/events","assignees_url":"https://api.github.com/repos/Azure/autorest/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/autorest/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/autorest/tags","blobs_url":"https://api.github.com/repos/Azure/autorest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/autorest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/autorest/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/autorest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/autorest/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/autorest/languages","stargazers_url":"https://api.github.com/repos/Azure/autorest/stargazers","contributors_url":"https://api.github.com/repos/Azure/autorest/contributors","subscribers_url":"https://api.github.com/repos/Azure/autorest/subscribers","subscription_url":"https://api.github.com/repos/Azure/autorest/subscription","commits_url":"https://api.github.com/repos/Azure/autorest/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/autorest/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/autorest/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/autorest/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/autorest/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/autorest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/autorest/merges","archive_url":"https://api.github.com/repos/Azure/autorest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/autorest/downloads","issues_url":"https://api.github.com/repos/Azure/autorest/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/autorest/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/autorest/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/autorest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/autorest/labels{/name}","releases_url":"https://api.github.com/repos/Azure/autorest/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/autorest/deployments","created_at":"2015-02-20T23:02:54Z","updated_at":"2017-02-13T09:04:05Z","pushed_at":"2017-02-14T02:24:42Z","git_url":"git://github.com/Azure/autorest.git","ssh_url":"git@github.com:Azure/autorest.git","clone_url":"https://github.com/Azure/autorest.git","svn_url":"https://github.com/Azure/autorest","homepage":"","size":59730,"stargazers_count":654,"watchers_count":654,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":214,"mirror_url":null,"open_issues_count":164,"forks":214,"open_issues":164,"watchers":654,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/autorest/pulls/1809"},"html":{"href":"https://github.com/Azure/autorest/pull/1809"},"issue":{"href":"https://api.github.com/repos/Azure/autorest/issues/1809"},"comments":{"href":"https://api.github.com/repos/Azure/autorest/issues/1809/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/autorest/pulls/1809/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/autorest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/autorest/pulls/1809/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/autorest/statuses/35c06201b8c967599f6a1d5f7f0a1c6785b81143"}}}}
{"actor":{"display_login":"olydis"}}