{"action":"created","comment":{"url":"https://api.github.com/repos/Ginger-Automation/Ginger/pulls/comments/214908103","pull_request_review_id":152058154,"id":214908103,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNDkwODEwMw==","diff_hunk":"@@ -0,0 +1,428 @@\n+﻿using Amdocs.Ginger.Common;\n+using Amdocs.Ginger.Common.GeneralLib;\n+using Amdocs.Ginger.Repository;\n+using GingerCore.Helpers;\n+using Newtonsoft.Json.Linq;\n+using System;\n+using System.Collections.Generic;\n+using System.Linq;\n+using System.Text;\n+using System.Text.RegularExpressions;\n+using System.Windows;\n+using System.Windows.Controls;\n+using System.Windows.Documents;\n+using System.Windows.Media;\n+using System.Xml;\n+using System.Xml.Linq;\n+\n+namespace Ginger.ApplicationModelsLib.APIModels\n+{\n+    public partial class APIModelBodyNodeSyncPage : Page\n+    {\n+        GenericWindow _pageGenericWin = null;\n+        ApplicationAPIUtils.eContentType requestBodyType;\n+        XmlDocument XMLDoc = null;\n+        JsonExtended JsonDoc = null;\n+        List<AppModelParameter> mParamsPendingDelete = new List<AppModelParameter>();\n+        ApplicationAPIModel mApplicationAPIModel = null;\n+        List<NodesToDelete> NodesToDeleteList = new List<NodesToDelete>();\n+        int RemovedCharsFromRequestBodyCounter = 0;\n+\n+        public APIModelBodyNodeSyncPage(ApplicationAPIModel applicationAPIModel, List<AppModelParameter> paramsToDelete)\n+        {\n+            InitializeComponent();\n+            mParamsPendingDelete = paramsToDelete;\n+            mApplicationAPIModel = applicationAPIModel;\n+\n+            if (APIConfigurationsDocumentParserBase.IsValidXML(mApplicationAPIModel.RequestBody))\n+            {\n+                requestBodyType = ApplicationAPIUtils.eContentType.XML;\n+                XMLDoc = new XmlDocument();\n+                XMLDoc.LoadXml(mApplicationAPIModel.RequestBody);\n+            }\n+            else if (APIConfigurationsDocumentParserBase.IsValidJson(mApplicationAPIModel.RequestBody))\n+            {\n+                requestBodyType = ApplicationAPIUtils.eContentType.JSon;\n+                JsonDoc = new JsonExtended(applicationAPIModel.RequestBody);\n+            }\n+            else","path":"Ginger/Ginger/ApplicationModelsLib/APIModels/APIModelBodyNodeSyncPage.xaml.cs","position":48,"original_position":48,"commit_id":"4561dc7ad1d6729286eec0f92edf9d735b713288","original_commit_id":"4561dc7ad1d6729286eec0f92edf9d735b713288","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Add curly braces around the nested statement(s) in this 'else' block.](https://app.codacy.com/app/GingerAutomation/Ginger/pullRequest?prid=2135921)","created_at":"2018-09-04T13:14:21Z","updated_at":"2018-09-04T13:14:21Z","html_url":"https://github.com/Ginger-Automation/Ginger/pull/112#discussion_r214908103","pull_request_url":"https://api.github.com/repos/Ginger-Automation/Ginger/pulls/112","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Ginger-Automation/Ginger/pulls/comments/214908103"},"html":{"href":"https://github.com/Ginger-Automation/Ginger/pull/112#discussion_r214908103"},"pull_request":{"href":"https://api.github.com/repos/Ginger-Automation/Ginger/pulls/112"}}},"pull_request":{"url":"https://api.github.com/repos/Ginger-Automation/Ginger/pulls/112","id":212941008,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyOTQxMDA4","html_url":"https://github.com/Ginger-Automation/Ginger/pull/112","diff_url":"https://github.com/Ginger-Automation/Ginger/pull/112.diff","patch_url":"https://github.com/Ginger-Automation/Ginger/pull/112.patch","issue_url":"https://api.github.com/repos/Ginger-Automation/Ginger/issues/112","number":112,"state":"open","locked":false,"title":"Feature/remove nodes from api model body when deleting params","user":{"login":"yulev55","id":41142192,"node_id":"MDQ6VXNlcjQxMTQyMTky","avatar_url":"https://avatars0.githubusercontent.com/u/41142192?v=4","gravatar_id":"","url":"https://api.github.com/users/yulev55","html_url":"https://github.com/yulev55","followers_url":"https://api.github.com/users/yulev55/followers","following_url":"https://api.github.com/users/yulev55/following{/other_user}","gists_url":"https://api.github.com/users/yulev55/gists{/gist_id}","starred_url":"https://api.github.com/users/yulev55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yulev55/subscriptions","organizations_url":"https://api.github.com/users/yulev55/orgs","repos_url":"https://api.github.com/users/yulev55/repos","events_url":"https://api.github.com/users/yulev55/events{/privacy}","received_events_url":"https://api.github.com/users/yulev55/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-04T11:19:00Z","updated_at":"2018-09-04T13:14:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8eb66dce3a15faf1d1c0a3511ef0cd58ceb70dfe","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Ginger-Automation/Ginger/pulls/112/commits","review_comments_url":"https://api.github.com/repos/Ginger-Automation/Ginger/pulls/112/comments","review_comment_url":"https://api.github.com/repos/Ginger-Automation/Ginger/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Ginger-Automation/Ginger/issues/112/comments","statuses_url":"https://api.github.com/repos/Ginger-Automation/Ginger/statuses/4561dc7ad1d6729286eec0f92edf9d735b713288","head":{"label":"Ginger-Automation:Feature/Remove_Nodes_From_API_Model_Body_When_Deleting_Params","ref":"Feature/Remove_Nodes_From_API_Model_Body_When_Deleting_Params","sha":"4561dc7ad1d6729286eec0f92edf9d735b713288","user":{"login":"Ginger-Automation","id":40216543,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMjE2NTQz","avatar_url":"https://avatars3.githubusercontent.com/u/40216543?v=4","gravatar_id":"","url":"https://api.github.com/users/Ginger-Automation","html_url":"https://github.com/Ginger-Automation","followers_url":"https://api.github.com/users/Ginger-Automation/followers","following_url":"https://api.github.com/users/Ginger-Automation/following{/other_user}","gists_url":"https://api.github.com/users/Ginger-Automation/gists{/gist_id}","starred_url":"https://api.github.com/users/Ginger-Automation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ginger-Automation/subscriptions","organizations_url":"https://api.github.com/users/Ginger-Automation/orgs","repos_url":"https://api.github.com/users/Ginger-Automation/repos","events_url":"https://api.github.com/users/Ginger-Automation/events{/privacy}","received_events_url":"https://api.github.com/users/Ginger-Automation/received_events","type":"Organization","site_admin":false},"repo":{"id":137613958,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc2MTM5NTg=","name":"Ginger","full_name":"Ginger-Automation/Ginger","owner":{"login":"Ginger-Automation","id":40216543,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMjE2NTQz","avatar_url":"https://avatars3.githubusercontent.com/u/40216543?v=4","gravatar_id":"","url":"https://api.github.com/users/Ginger-Automation","html_url":"https://github.com/Ginger-Automation","followers_url":"https://api.github.com/users/Ginger-Automation/followers","following_url":"https://api.github.com/users/Ginger-Automation/following{/other_user}","gists_url":"https://api.github.com/users/Ginger-Automation/gists{/gist_id}","starred_url":"https://api.github.com/users/Ginger-Automation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ginger-Automation/subscriptions","organizations_url":"https://api.github.com/users/Ginger-Automation/orgs","repos_url":"https://api.github.com/users/Ginger-Automation/repos","events_url":"https://api.github.com/users/Ginger-Automation/events{/privacy}","received_events_url":"https://api.github.com/users/Ginger-Automation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Ginger-Automation/Ginger","description":"Ginger Automation IDE - http://ginger-automation.github.io","fork":false,"url":"https://api.github.com/repos/Ginger-Automation/Ginger","forks_url":"https://api.github.com/repos/Ginger-Automation/Ginger/forks","keys_url":"https://api.github.com/repos/Ginger-Automation/Ginger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ginger-Automation/Ginger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ginger-Automation/Ginger/teams","hooks_url":"https://api.github.com/repos/Ginger-Automation/Ginger/hooks","issue_events_url":"https://api.github.com/repos/Ginger-Automation/Ginger/issues/events{/number}","events_url":"https://api.github.com/repos/Ginger-Automation/Ginger/events","assignees_url":"https://api.github.com/repos/Ginger-Automation/Ginger/assignees{/user}","branches_url":"https://api.github.com/repos/Ginger-Automation/Ginger/branches{/branch}","tags_url":"https://api.github.com/repos/Ginger-Automation/Ginger/tags","blobs_url":"https://api.github.com/repos/Ginger-Automation/Ginger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ginger-Automation/Ginger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ginger-Automation/Ginger/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ginger-Automation/Ginger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ginger-Automation/Ginger/statuses/{sha}","languages_url":"https://api.github.com/repos/Ginger-Automation/Ginger/languages","stargazers_url":"https://api.github.com/repos/Ginger-Automation/Ginger/stargazers","contributors_url":"https://api.github.com/repos/Ginger-Automation/Ginger/contributors","subscribers_url":"https://api.github.com/repos/Ginger-Automation/Ginger/subscribers","subscription_url":"https://api.github.com/repos/Ginger-Automation/Ginger/subscription","commits_url":"https://api.github.com/repos/Ginger-Automation/Ginger/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ginger-Automation/Ginger/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ginger-Automation/Ginger/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ginger-Automation/Ginger/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ginger-Automation/Ginger/contents/{+path}","compare_url":"https://api.github.com/repos/Ginger-Automation/Ginger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ginger-Automation/Ginger/merges","archive_url":"https://api.github.com/repos/Ginger-Automation/Ginger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ginger-Automation/Ginger/downloads","issues_url":"https://api.github.com/repos/Ginger-Automation/Ginger/issues{/number}","pulls_url":"https://api.github.com/repos/Ginger-Automation/Ginger/pulls{/number}","milestones_url":"https://api.github.com/repos/Ginger-Automation/Ginger/milestones{/number}","notifications_url":"https://api.github.com/repos/Ginger-Automation/Ginger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ginger-Automation/Ginger/labels{/name}","releases_url":"https://api.github.com/repos/Ginger-Automation/Ginger/releases{/id}","deployments_url":"https://api.github.com/repos/Ginger-Automation/Ginger/deployments","created_at":"2018-06-16T22:22:52Z","updated_at":"2018-09-03T06:47:09Z","pushed_at":"2018-09-04T13:11:00Z","git_url":"git://github.com/Ginger-Automation/Ginger.git","ssh_url":"git@github.com:Ginger-Automation/Ginger.git","clone_url":"https://github.com/Ginger-Automation/Ginger.git","svn_url":"https://github.com/Ginger-Automation/Ginger","homepage":"","size":109706,"stargazers_count":17,"watchers_count":17,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"archived":false,"open_issues_count":23,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":17,"open_issues":23,"watchers":17,"default_branch":"master"}},"base":{"label":"Ginger-Automation:master","ref":"master","sha":"cb9c10faa814c0d2cc3996929174789085568566","user":{"login":"Ginger-Automation","id":40216543,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMjE2NTQz","avatar_url":"https://avatars3.githubusercontent.com/u/40216543?v=4","gravatar_id":"","url":"https://api.github.com/users/Ginger-Automation","html_url":"https://github.com/Ginger-Automation","followers_url":"https://api.github.com/users/Ginger-Automation/followers","following_url":"https://api.github.com/users/Ginger-Automation/following{/other_user}","gists_url":"https://api.github.com/users/Ginger-Automation/gists{/gist_id}","starred_url":"https://api.github.com/users/Ginger-Automation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ginger-Automation/subscriptions","organizations_url":"https://api.github.com/users/Ginger-Automation/orgs","repos_url":"https://api.github.com/users/Ginger-Automation/repos","events_url":"https://api.github.com/users/Ginger-Automation/events{/privacy}","received_events_url":"https://api.github.com/users/Ginger-Automation/received_events","type":"Organization","site_admin":false},"repo":{"id":137613958,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc2MTM5NTg=","name":"Ginger","full_name":"Ginger-Automation/Ginger","owner":{"login":"Ginger-Automation","id":40216543,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMjE2NTQz","avatar_url":"https://avatars3.githubusercontent.com/u/40216543?v=4","gravatar_id":"","url":"https://api.github.com/users/Ginger-Automation","html_url":"https://github.com/Ginger-Automation","followers_url":"https://api.github.com/users/Ginger-Automation/followers","following_url":"https://api.github.com/users/Ginger-Automation/following{/other_user}","gists_url":"https://api.github.com/users/Ginger-Automation/gists{/gist_id}","starred_url":"https://api.github.com/users/Ginger-Automation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ginger-Automation/subscriptions","organizations_url":"https://api.github.com/users/Ginger-Automation/orgs","repos_url":"https://api.github.com/users/Ginger-Automation/repos","events_url":"https://api.github.com/users/Ginger-Automation/events{/privacy}","received_events_url":"https://api.github.com/users/Ginger-Automation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Ginger-Automation/Ginger","description":"Ginger Automation IDE - http://ginger-automation.github.io","fork":false,"url":"https://api.github.com/repos/Ginger-Automation/Ginger","forks_url":"https://api.github.com/repos/Ginger-Automation/Ginger/forks","keys_url":"https://api.github.com/repos/Ginger-Automation/Ginger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ginger-Automation/Ginger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ginger-Automation/Ginger/teams","hooks_url":"https://api.github.com/repos/Ginger-Automation/Ginger/hooks","issue_events_url":"https://api.github.com/repos/Ginger-Automation/Ginger/issues/events{/number}","events_url":"https://api.github.com/repos/Ginger-Automation/Ginger/events","assignees_url":"https://api.github.com/repos/Ginger-Automation/Ginger/assignees{/user}","branches_url":"https://api.github.com/repos/Ginger-Automation/Ginger/branches{/branch}","tags_url":"https://api.github.com/repos/Ginger-Automation/Ginger/tags","blobs_url":"https://api.github.com/repos/Ginger-Automation/Ginger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ginger-Automation/Ginger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ginger-Automation/Ginger/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ginger-Automation/Ginger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ginger-Automation/Ginger/statuses/{sha}","languages_url":"https://api.github.com/repos/Ginger-Automation/Ginger/languages","stargazers_url":"https://api.github.com/repos/Ginger-Automation/Ginger/stargazers","contributors_url":"https://api.github.com/repos/Ginger-Automation/Ginger/contributors","subscribers_url":"https://api.github.com/repos/Ginger-Automation/Ginger/subscribers","subscription_url":"https://api.github.com/repos/Ginger-Automation/Ginger/subscription","commits_url":"https://api.github.com/repos/Ginger-Automation/Ginger/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ginger-Automation/Ginger/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ginger-Automation/Ginger/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ginger-Automation/Ginger/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ginger-Automation/Ginger/contents/{+path}","compare_url":"https://api.github.com/repos/Ginger-Automation/Ginger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ginger-Automation/Ginger/merges","archive_url":"https://api.github.com/repos/Ginger-Automation/Ginger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ginger-Automation/Ginger/downloads","issues_url":"https://api.github.com/repos/Ginger-Automation/Ginger/issues{/number}","pulls_url":"https://api.github.com/repos/Ginger-Automation/Ginger/pulls{/number}","milestones_url":"https://api.github.com/repos/Ginger-Automation/Ginger/milestones{/number}","notifications_url":"https://api.github.com/repos/Ginger-Automation/Ginger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ginger-Automation/Ginger/labels{/name}","releases_url":"https://api.github.com/repos/Ginger-Automation/Ginger/releases{/id}","deployments_url":"https://api.github.com/repos/Ginger-Automation/Ginger/deployments","created_at":"2018-06-16T22:22:52Z","updated_at":"2018-09-03T06:47:09Z","pushed_at":"2018-09-04T13:11:00Z","git_url":"git://github.com/Ginger-Automation/Ginger.git","ssh_url":"git@github.com:Ginger-Automation/Ginger.git","clone_url":"https://github.com/Ginger-Automation/Ginger.git","svn_url":"https://github.com/Ginger-Automation/Ginger","homepage":"","size":109706,"stargazers_count":17,"watchers_count":17,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"archived":false,"open_issues_count":23,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":17,"open_issues":23,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Ginger-Automation/Ginger/pulls/112"},"html":{"href":"https://github.com/Ginger-Automation/Ginger/pull/112"},"issue":{"href":"https://api.github.com/repos/Ginger-Automation/Ginger/issues/112"},"comments":{"href":"https://api.github.com/repos/Ginger-Automation/Ginger/issues/112/comments"},"review_comments":{"href":"https://api.github.com/repos/Ginger-Automation/Ginger/pulls/112/comments"},"review_comment":{"href":"https://api.github.com/repos/Ginger-Automation/Ginger/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Ginger-Automation/Ginger/pulls/112/commits"},"statuses":{"href":"https://api.github.com/repos/Ginger-Automation/Ginger/statuses/4561dc7ad1d6729286eec0f92edf9d735b713288"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"codacy-bot"}}