{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/pulls/comments/220740551","pull_request_review_id":159219996,"id":220740551,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMDc0MDU1MQ==","diff_hunk":"@@ -0,0 +1,91 @@\n+﻿// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT license.\n+\n+using System.Collections.Generic;\n+using Microsoft.OpenApi.Models;\n+\n+namespace Microsoft.OpenApi.Services\n+{\n+    /// <summary>\n+    /// Defines behavior for comparing properties of <see cref=\"OpenApiRequestBody\"/>.\n+    /// </summary>\n+    public class OpenApiRequestBodyComparer : OpenApiComparerBase<OpenApiRequestBody>\n+    {\n+        /// <summary>\n+        /// Executes comparision against source and target <see cref=\"OpenApiRequestBody\"/>.\n+        /// </summary>\n+        /// <param name=\"sourceRequestBody\">The source.</param>\n+        /// <param name=\"targetRequestBody\">The target.</param>\n+        /// <param name=\"comparisonContext\">Context under which to compare the source and target.</param>\n+        public override void Compare(\n+            OpenApiRequestBody sourceRequestBody,\n+            OpenApiRequestBody targetRequestBody,\n+            ComparisonContext comparisonContext)\n+        {\n+            if (sourceRequestBody == null && targetRequestBody == null)\n+            {\n+                return;\n+            }\n+\n+            if (sourceRequestBody == null || targetRequestBody == null)\n+            {\n+                comparisonContext.AddOpenApiDifference(\n+                    new OpenApiDifference\n+                    {\n+                        OpenApiDifferenceOperation = OpenApiDifferenceOperation.Update,\n+                        SourceValue = sourceRequestBody,\n+                        TargetValue = targetRequestBody,\n+                        OpenApiComparedElementType = typeof(OpenApiRequestBody),\n+                        Pointer = comparisonContext.PathString\n+                    });\n+\n+                return;\n+            }\n+\n+            if (sourceRequestBody.Reference != null\n+                && targetRequestBody.Reference != null\n+                && sourceRequestBody.Reference.Id != targetRequestBody.Reference.Id)\n+            {\n+                WalkAndAddOpenApiDifference(\n+                    comparisonContext,\n+                    \"$ref\",","path":"src/Microsoft.OpenApi/Services/OpenApiRequestBodyComparer.cs","position":51,"original_position":51,"commit_id":"4a66112152f3f4c3948c0e8c147bf2c2b5a72906","original_commit_id":"4a66112152f3f4c3948c0e8c147bf2c2b5a72906","user":{"login":"PerthCharern","id":26418622,"node_id":"MDQ6VXNlcjI2NDE4NjIy","avatar_url":"https://avatars1.githubusercontent.com/u/26418622?v=4","gravatar_id":"","url":"https://api.github.com/users/PerthCharern","html_url":"https://github.com/PerthCharern","followers_url":"https://api.github.com/users/PerthCharern/followers","following_url":"https://api.github.com/users/PerthCharern/following{/other_user}","gists_url":"https://api.github.com/users/PerthCharern/gists{/gist_id}","starred_url":"https://api.github.com/users/PerthCharern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PerthCharern/subscriptions","organizations_url":"https://api.github.com/users/PerthCharern/orgs","repos_url":"https://api.github.com/users/PerthCharern/repos","events_url":"https://api.github.com/users/PerthCharern/events{/privacy}","received_events_url":"https://api.github.com/users/PerthCharern/received_events","type":"User","site_admin":false},"body":">\"$ref\" [](start = 20, length = 6)\r\n\r\nDollarRef constant","created_at":"2018-09-26T22:15:58Z","updated_at":"2018-09-26T22:15:58Z","html_url":"https://github.com/Microsoft/OpenAPI.NET/pull/316#discussion_r220740551","pull_request_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/pulls/316","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/OpenAPI.NET/pulls/comments/220740551"},"html":{"href":"https://github.com/Microsoft/OpenAPI.NET/pull/316#discussion_r220740551"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/OpenAPI.NET/pulls/316"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/pulls/316","id":208990623,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4OTkwNjIz","html_url":"https://github.com/Microsoft/OpenAPI.NET/pull/316","diff_url":"https://github.com/Microsoft/OpenAPI.NET/pull/316.diff","patch_url":"https://github.com/Microsoft/OpenAPI.NET/pull/316.patch","issue_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/issues/316","number":316,"state":"open","locked":false,"title":"Open api schema diff","user":{"login":"Shwetap05","id":12241053,"node_id":"MDQ6VXNlcjEyMjQxMDUz","avatar_url":"https://avatars2.githubusercontent.com/u/12241053?v=4","gravatar_id":"","url":"https://api.github.com/users/Shwetap05","html_url":"https://github.com/Shwetap05","followers_url":"https://api.github.com/users/Shwetap05/followers","following_url":"https://api.github.com/users/Shwetap05/following{/other_user}","gists_url":"https://api.github.com/users/Shwetap05/gists{/gist_id}","starred_url":"https://api.github.com/users/Shwetap05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shwetap05/subscriptions","organizations_url":"https://api.github.com/users/Shwetap05/orgs","repos_url":"https://api.github.com/users/Shwetap05/repos","events_url":"https://api.github.com/users/Shwetap05/events{/privacy}","received_events_url":"https://api.github.com/users/Shwetap05/received_events","type":"User","site_admin":false},"body":"Added  more comparers.\r\n","created_at":"2018-08-16T21:32:21Z","updated_at":"2018-09-26T22:15:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8a77c78ee06d937c585987ad23dd1c15050e1142","assignee":null,"assignees":[],"requested_reviewers":[{"login":"darrelmiller","id":447694,"node_id":"MDQ6VXNlcjQ0NzY5NA==","avatar_url":"https://avatars2.githubusercontent.com/u/447694?v=4","gravatar_id":"","url":"https://api.github.com/users/darrelmiller","html_url":"https://github.com/darrelmiller","followers_url":"https://api.github.com/users/darrelmiller/followers","following_url":"https://api.github.com/users/darrelmiller/following{/other_user}","gists_url":"https://api.github.com/users/darrelmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/darrelmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darrelmiller/subscriptions","organizations_url":"https://api.github.com/users/darrelmiller/orgs","repos_url":"https://api.github.com/users/darrelmiller/repos","events_url":"https://api.github.com/users/darrelmiller/events{/privacy}","received_events_url":"https://api.github.com/users/darrelmiller/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/pulls/316/commits","review_comments_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/pulls/316/comments","review_comment_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/issues/316/comments","statuses_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/statuses/4a66112152f3f4c3948c0e8c147bf2c2b5a72906","head":{"label":"Microsoft:OpenApiSchemaDiff","ref":"OpenApiSchemaDiff","sha":"4a66112152f3f4c3948c0e8c147bf2c2b5a72906","user":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":97175798,"node_id":"MDEwOlJlcG9zaXRvcnk5NzE3NTc5OA==","name":"OpenAPI.NET","full_name":"Microsoft/OpenAPI.NET","private":false,"owner":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Microsoft/OpenAPI.NET","description":"The OpenAPI.NET SDK contains a useful object model for OpenAPI documents in .NET along with common serializers to extract raw OpenAPI JSON and YAML documents from the model.","fork":false,"url":"https://api.github.com/repos/Microsoft/OpenAPI.NET","forks_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/forks","keys_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/teams","hooks_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/events","assignees_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/tags","blobs_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/languages","stargazers_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/subscription","commits_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/merges","archive_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/downloads","issues_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/deployments","created_at":"2017-07-14T00:24:14Z","updated_at":"2018-09-26T21:19:30Z","pushed_at":"2018-09-26T21:21:46Z","git_url":"git://github.com/Microsoft/OpenAPI.NET.git","ssh_url":"git@github.com:Microsoft/OpenAPI.NET.git","clone_url":"https://github.com/Microsoft/OpenAPI.NET.git","svn_url":"https://github.com/Microsoft/OpenAPI.NET","homepage":"","size":2215,"stargazers_count":346,"watchers_count":346,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":31,"mirror_url":null,"archived":false,"open_issues_count":30,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":31,"open_issues":30,"watchers":346,"default_branch":"master"}},"base":{"label":"Microsoft:vnext","ref":"vnext","sha":"663b1ab172d84b561f2b6b02a44c84746a13c4ca","user":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":97175798,"node_id":"MDEwOlJlcG9zaXRvcnk5NzE3NTc5OA==","name":"OpenAPI.NET","full_name":"Microsoft/OpenAPI.NET","private":false,"owner":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Microsoft/OpenAPI.NET","description":"The OpenAPI.NET SDK contains a useful object model for OpenAPI documents in .NET along with common serializers to extract raw OpenAPI JSON and YAML documents from the model.","fork":false,"url":"https://api.github.com/repos/Microsoft/OpenAPI.NET","forks_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/forks","keys_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/teams","hooks_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/events","assignees_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/tags","blobs_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/languages","stargazers_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/subscription","commits_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/merges","archive_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/downloads","issues_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/OpenAPI.NET/deployments","created_at":"2017-07-14T00:24:14Z","updated_at":"2018-09-26T21:19:30Z","pushed_at":"2018-09-26T21:21:46Z","git_url":"git://github.com/Microsoft/OpenAPI.NET.git","ssh_url":"git@github.com:Microsoft/OpenAPI.NET.git","clone_url":"https://github.com/Microsoft/OpenAPI.NET.git","svn_url":"https://github.com/Microsoft/OpenAPI.NET","homepage":"","size":2215,"stargazers_count":346,"watchers_count":346,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":31,"mirror_url":null,"archived":false,"open_issues_count":30,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":31,"open_issues":30,"watchers":346,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/OpenAPI.NET/pulls/316"},"html":{"href":"https://github.com/Microsoft/OpenAPI.NET/pull/316"},"issue":{"href":"https://api.github.com/repos/Microsoft/OpenAPI.NET/issues/316"},"comments":{"href":"https://api.github.com/repos/Microsoft/OpenAPI.NET/issues/316/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/OpenAPI.NET/pulls/316/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/OpenAPI.NET/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/OpenAPI.NET/pulls/316/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/OpenAPI.NET/statuses/4a66112152f3f4c3948c0e8c147bf2c2b5a72906"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"PerthCharern"}}