{"action":"created","comment":{"url":"https://api.github.com/repos/apigee-127/swagger-converter/pulls/comments/32449609","id":32449609,"diff_hunk":"@@ -523,16 +523,28 @@ function transformAllModels(models) {\n /*\n  * Extends an object with another\n  * @param source {object} - object that will get extended\n- * @parma distention {object} - object the will used to extend source\n+ * @parma destination {object} - object the will used to extend source\n */\n-function extend(source, distention) {\n+function extend(source, destination) {\n   if (typeof source !== 'object') {\n     throw new Error('source must be objects');\n   }\n \n-  if (typeof distention === 'object') {\n-    Object.keys(distention).forEach(function(key) {\n-      source[key] = distention[key];\n+  if (typeof destination === 'object') {\n+    Object.keys(destination).forEach(function(key) {\n+      source[key] = destination[key];\n     });\n   }\n }\n+\n+/*\n+ * Convert string values into the proper type.\n+ * @param value {*} - value to convert\n+ * @returns {*} - transformed modles object\n+*/\n+function fixValueType(value) {\n+  if (typeof value !== 'string') {\n+    return value;\n+  }\n+  return JSON.parse(value);","path":"index.js","position":null,"original_position":184,"commit_id":"a9a0cfa3d834cac3e003f24226e0affce6b388c5","original_commit_id":"802c98e9a371974810e66fb7296be4be379427a9","user":{"login":"mohsen1","id":543633,"avatar_url":"https://avatars.githubusercontent.com/u/543633?v=3","gravatar_id":"","url":"https://api.github.com/users/mohsen1","html_url":"https://github.com/mohsen1","followers_url":"https://api.github.com/users/mohsen1/followers","following_url":"https://api.github.com/users/mohsen1/following{/other_user}","gists_url":"https://api.github.com/users/mohsen1/gists{/gist_id}","starred_url":"https://api.github.com/users/mohsen1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohsen1/subscriptions","organizations_url":"https://api.github.com/users/mohsen1/orgs","repos_url":"https://api.github.com/users/mohsen1/repos","events_url":"https://api.github.com/users/mohsen1/events{/privacy}","received_events_url":"https://api.github.com/users/mohsen1/received_events","type":"User","site_admin":false},"body":"ok. got it. :+1: ","created_at":"2015-06-15T18:14:21Z","updated_at":"2015-06-15T18:14:21Z","html_url":"https://github.com/apigee-127/swagger-converter/pull/24#discussion_r32449609","pull_request_url":"https://api.github.com/repos/apigee-127/swagger-converter/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/apigee-127/swagger-converter/pulls/comments/32449609"},"html":{"href":"https://github.com/apigee-127/swagger-converter/pull/24#discussion_r32449609"},"pull_request":{"href":"https://api.github.com/repos/apigee-127/swagger-converter/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/apigee-127/swagger-converter/pulls/24","id":37638510,"html_url":"https://github.com/apigee-127/swagger-converter/pull/24","diff_url":"https://github.com/apigee-127/swagger-converter/pull/24.diff","patch_url":"https://github.com/apigee-127/swagger-converter/pull/24.patch","issue_url":"https://api.github.com/repos/apigee-127/swagger-converter/issues/24","number":24,"state":"open","locked":false,"title":"Fix test suite","user":{"login":"IvanGoncharov","id":8336157,"avatar_url":"https://avatars.githubusercontent.com/u/8336157?v=3","gravatar_id":"","url":"https://api.github.com/users/IvanGoncharov","html_url":"https://github.com/IvanGoncharov","followers_url":"https://api.github.com/users/IvanGoncharov/followers","following_url":"https://api.github.com/users/IvanGoncharov/following{/other_user}","gists_url":"https://api.github.com/users/IvanGoncharov/gists{/gist_id}","starred_url":"https://api.github.com/users/IvanGoncharov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IvanGoncharov/subscriptions","organizations_url":"https://api.github.com/users/IvanGoncharov/orgs","repos_url":"https://api.github.com/users/IvanGoncharov/repos","events_url":"https://api.github.com/users/IvanGoncharov/events{/privacy}","received_events_url":"https://api.github.com/users/IvanGoncharov/received_events","type":"User","site_admin":false},"body":"I fixed 'swagger-tools' validation.\r\nI fixed one of the problems, but test suite is still failing :(\r\n","created_at":"2015-06-14T08:59:20Z","updated_at":"2015-06-15T18:14:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"372f28c0e483ed653cf1517c782e72593aed887e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apigee-127/swagger-converter/pulls/24/commits","review_comments_url":"https://api.github.com/repos/apigee-127/swagger-converter/pulls/24/comments","review_comment_url":"https://api.github.com/repos/apigee-127/swagger-converter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apigee-127/swagger-converter/issues/24/comments","statuses_url":"https://api.github.com/repos/apigee-127/swagger-converter/statuses/a9a0cfa3d834cac3e003f24226e0affce6b388c5","head":{"label":"APIs-guru:master","ref":"master","sha":"a9a0cfa3d834cac3e003f24226e0affce6b388c5","user":{"login":"APIs-guru","id":10975548,"avatar_url":"https://avatars.githubusercontent.com/u/10975548?v=3","gravatar_id":"","url":"https://api.github.com/users/APIs-guru","html_url":"https://github.com/APIs-guru","followers_url":"https://api.github.com/users/APIs-guru/followers","following_url":"https://api.github.com/users/APIs-guru/following{/other_user}","gists_url":"https://api.github.com/users/APIs-guru/gists{/gist_id}","starred_url":"https://api.github.com/users/APIs-guru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/APIs-guru/subscriptions","organizations_url":"https://api.github.com/users/APIs-guru/orgs","repos_url":"https://api.github.com/users/APIs-guru/repos","events_url":"https://api.github.com/users/APIs-guru/events{/privacy}","received_events_url":"https://api.github.com/users/APIs-guru/received_events","type":"Organization","site_admin":false},"repo":{"id":37398533,"name":"swagger-converter","full_name":"APIs-guru/swagger-converter","owner":{"login":"APIs-guru","id":10975548,"avatar_url":"https://avatars.githubusercontent.com/u/10975548?v=3","gravatar_id":"","url":"https://api.github.com/users/APIs-guru","html_url":"https://github.com/APIs-guru","followers_url":"https://api.github.com/users/APIs-guru/followers","following_url":"https://api.github.com/users/APIs-guru/following{/other_user}","gists_url":"https://api.github.com/users/APIs-guru/gists{/gist_id}","starred_url":"https://api.github.com/users/APIs-guru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/APIs-guru/subscriptions","organizations_url":"https://api.github.com/users/APIs-guru/orgs","repos_url":"https://api.github.com/users/APIs-guru/repos","events_url":"https://api.github.com/users/APIs-guru/events{/privacy}","received_events_url":"https://api.github.com/users/APIs-guru/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/APIs-guru/swagger-converter","description":"Converts Swagger documents from version 1.2 to 2.0","fork":true,"url":"https://api.github.com/repos/APIs-guru/swagger-converter","forks_url":"https://api.github.com/repos/APIs-guru/swagger-converter/forks","keys_url":"https://api.github.com/repos/APIs-guru/swagger-converter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/APIs-guru/swagger-converter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/APIs-guru/swagger-converter/teams","hooks_url":"https://api.github.com/repos/APIs-guru/swagger-converter/hooks","issue_events_url":"https://api.github.com/repos/APIs-guru/swagger-converter/issues/events{/number}","events_url":"https://api.github.com/repos/APIs-guru/swagger-converter/events","assignees_url":"https://api.github.com/repos/APIs-guru/swagger-converter/assignees{/user}","branches_url":"https://api.github.com/repos/APIs-guru/swagger-converter/branches{/branch}","tags_url":"https://api.github.com/repos/APIs-guru/swagger-converter/tags","blobs_url":"https://api.github.com/repos/APIs-guru/swagger-converter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/APIs-guru/swagger-converter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/APIs-guru/swagger-converter/git/refs{/sha}","trees_url":"https://api.github.com/repos/APIs-guru/swagger-converter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/APIs-guru/swagger-converter/statuses/{sha}","languages_url":"https://api.github.com/repos/APIs-guru/swagger-converter/languages","stargazers_url":"https://api.github.com/repos/APIs-guru/swagger-converter/stargazers","contributors_url":"https://api.github.com/repos/APIs-guru/swagger-converter/contributors","subscribers_url":"https://api.github.com/repos/APIs-guru/swagger-converter/subscribers","subscription_url":"https://api.github.com/repos/APIs-guru/swagger-converter/subscription","commits_url":"https://api.github.com/repos/APIs-guru/swagger-converter/commits{/sha}","git_commits_url":"https://api.github.com/repos/APIs-guru/swagger-converter/git/commits{/sha}","comments_url":"https://api.github.com/repos/APIs-guru/swagger-converter/comments{/number}","issue_comment_url":"https://api.github.com/repos/APIs-guru/swagger-converter/issues/comments{/number}","contents_url":"https://api.github.com/repos/APIs-guru/swagger-converter/contents/{+path}","compare_url":"https://api.github.com/repos/APIs-guru/swagger-converter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/APIs-guru/swagger-converter/merges","archive_url":"https://api.github.com/repos/APIs-guru/swagger-converter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/APIs-guru/swagger-converter/downloads","issues_url":"https://api.github.com/repos/APIs-guru/swagger-converter/issues{/number}","pulls_url":"https://api.github.com/repos/APIs-guru/swagger-converter/pulls{/number}","milestones_url":"https://api.github.com/repos/APIs-guru/swagger-converter/milestones{/number}","notifications_url":"https://api.github.com/repos/APIs-guru/swagger-converter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/APIs-guru/swagger-converter/labels{/name}","releases_url":"https://api.github.com/repos/APIs-guru/swagger-converter/releases{/id}","created_at":"2015-06-14T04:09:11Z","updated_at":"2015-06-14T04:09:14Z","pushed_at":"2015-06-15T17:38:54Z","git_url":"git://github.com/APIs-guru/swagger-converter.git","ssh_url":"git@github.com:APIs-guru/swagger-converter.git","clone_url":"https://github.com/APIs-guru/swagger-converter.git","svn_url":"https://github.com/APIs-guru/swagger-converter","homepage":null,"size":1077,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"apigee-127:master","ref":"master","sha":"e82fbbbff229dc0dedd795b52f8d3ea050e7cfdf","user":{"login":"apigee-127","id":7990855,"avatar_url":"https://avatars.githubusercontent.com/u/7990855?v=3","gravatar_id":"","url":"https://api.github.com/users/apigee-127","html_url":"https://github.com/apigee-127","followers_url":"https://api.github.com/users/apigee-127/followers","following_url":"https://api.github.com/users/apigee-127/following{/other_user}","gists_url":"https://api.github.com/users/apigee-127/gists{/gist_id}","starred_url":"https://api.github.com/users/apigee-127/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apigee-127/subscriptions","organizations_url":"https://api.github.com/users/apigee-127/orgs","repos_url":"https://api.github.com/users/apigee-127/repos","events_url":"https://api.github.com/users/apigee-127/events{/privacy}","received_events_url":"https://api.github.com/users/apigee-127/received_events","type":"Organization","site_admin":false},"repo":{"id":27731500,"name":"swagger-converter","full_name":"apigee-127/swagger-converter","owner":{"login":"apigee-127","id":7990855,"avatar_url":"https://avatars.githubusercontent.com/u/7990855?v=3","gravatar_id":"","url":"https://api.github.com/users/apigee-127","html_url":"https://github.com/apigee-127","followers_url":"https://api.github.com/users/apigee-127/followers","following_url":"https://api.github.com/users/apigee-127/following{/other_user}","gists_url":"https://api.github.com/users/apigee-127/gists{/gist_id}","starred_url":"https://api.github.com/users/apigee-127/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apigee-127/subscriptions","organizations_url":"https://api.github.com/users/apigee-127/orgs","repos_url":"https://api.github.com/users/apigee-127/repos","events_url":"https://api.github.com/users/apigee-127/events{/privacy}","received_events_url":"https://api.github.com/users/apigee-127/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apigee-127/swagger-converter","description":"Converts Swagger documents from version 1.2 to 2.0","fork":false,"url":"https://api.github.com/repos/apigee-127/swagger-converter","forks_url":"https://api.github.com/repos/apigee-127/swagger-converter/forks","keys_url":"https://api.github.com/repos/apigee-127/swagger-converter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apigee-127/swagger-converter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apigee-127/swagger-converter/teams","hooks_url":"https://api.github.com/repos/apigee-127/swagger-converter/hooks","issue_events_url":"https://api.github.com/repos/apigee-127/swagger-converter/issues/events{/number}","events_url":"https://api.github.com/repos/apigee-127/swagger-converter/events","assignees_url":"https://api.github.com/repos/apigee-127/swagger-converter/assignees{/user}","branches_url":"https://api.github.com/repos/apigee-127/swagger-converter/branches{/branch}","tags_url":"https://api.github.com/repos/apigee-127/swagger-converter/tags","blobs_url":"https://api.github.com/repos/apigee-127/swagger-converter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apigee-127/swagger-converter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apigee-127/swagger-converter/git/refs{/sha}","trees_url":"https://api.github.com/repos/apigee-127/swagger-converter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apigee-127/swagger-converter/statuses/{sha}","languages_url":"https://api.github.com/repos/apigee-127/swagger-converter/languages","stargazers_url":"https://api.github.com/repos/apigee-127/swagger-converter/stargazers","contributors_url":"https://api.github.com/repos/apigee-127/swagger-converter/contributors","subscribers_url":"https://api.github.com/repos/apigee-127/swagger-converter/subscribers","subscription_url":"https://api.github.com/repos/apigee-127/swagger-converter/subscription","commits_url":"https://api.github.com/repos/apigee-127/swagger-converter/commits{/sha}","git_commits_url":"https://api.github.com/repos/apigee-127/swagger-converter/git/commits{/sha}","comments_url":"https://api.github.com/repos/apigee-127/swagger-converter/comments{/number}","issue_comment_url":"https://api.github.com/repos/apigee-127/swagger-converter/issues/comments{/number}","contents_url":"https://api.github.com/repos/apigee-127/swagger-converter/contents/{+path}","compare_url":"https://api.github.com/repos/apigee-127/swagger-converter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apigee-127/swagger-converter/merges","archive_url":"https://api.github.com/repos/apigee-127/swagger-converter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apigee-127/swagger-converter/downloads","issues_url":"https://api.github.com/repos/apigee-127/swagger-converter/issues{/number}","pulls_url":"https://api.github.com/repos/apigee-127/swagger-converter/pulls{/number}","milestones_url":"https://api.github.com/repos/apigee-127/swagger-converter/milestones{/number}","notifications_url":"https://api.github.com/repos/apigee-127/swagger-converter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apigee-127/swagger-converter/labels{/name}","releases_url":"https://api.github.com/repos/apigee-127/swagger-converter/releases{/id}","created_at":"2014-12-08T19:37:46Z","updated_at":"2015-06-05T15:03:23Z","pushed_at":"2015-06-15T17:38:55Z","git_url":"git://github.com/apigee-127/swagger-converter.git","ssh_url":"git@github.com:apigee-127/swagger-converter.git","clone_url":"https://github.com/apigee-127/swagger-converter.git","svn_url":"https://github.com/apigee-127/swagger-converter","homepage":null,"size":1077,"stargazers_count":13,"watchers_count":13,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":11,"forks":7,"open_issues":11,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apigee-127/swagger-converter/pulls/24"},"html":{"href":"https://github.com/apigee-127/swagger-converter/pull/24"},"issue":{"href":"https://api.github.com/repos/apigee-127/swagger-converter/issues/24"},"comments":{"href":"https://api.github.com/repos/apigee-127/swagger-converter/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/apigee-127/swagger-converter/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/apigee-127/swagger-converter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apigee-127/swagger-converter/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/apigee-127/swagger-converter/statuses/a9a0cfa3d834cac3e003f24226e0affce6b388c5"}}}}