{"action":"created","comment":{"url":"https://api.github.com/repos/GuildOfProgrammers/swagger/pulls/comments/55495291","id":55495291,"diff_hunk":"@@ -224,21 +228,59 @@ Swagger = {\n };\n \n function getArgsFromParams(transformers, params) {\n+  let promises = [];\n   let index = 0;\n \n   _.forEach(params, (param) => {\n-    let transformer = _.findWhere(transformers, {argIndex: index});\n-    if (transformer) {\n-      transformer.transformers.forEach((transformer) => {\n-        let transformerInstance = Swagger.instances.get(transformer);\n-        param.value = transformerInstance.transform.call(transformerInstance, param.value);\n-      });\n+    let transformersList = _.findWhere(transformers, {argIndex: index});\n+\n+    if (transformersList) {\n+      let handleTransformer = function (transformersContainer, tIndex) {","path":"swagger.js","position":60,"original_position":60,"commit_id":"92b2b95a892c5ab82594a83b12ba9e1c00d6aa45","original_commit_id":"92b2b95a892c5ab82594a83b12ba9e1c00d6aa45","user":{"login":"dotansimha","id":3680083,"avatar_url":"https://avatars.githubusercontent.com/u/3680083?v=3","gravatar_id":"","url":"https://api.github.com/users/dotansimha","html_url":"https://github.com/dotansimha","followers_url":"https://api.github.com/users/dotansimha/followers","following_url":"https://api.github.com/users/dotansimha/following{/other_user}","gists_url":"https://api.github.com/users/dotansimha/gists{/gist_id}","starred_url":"https://api.github.com/users/dotansimha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotansimha/subscriptions","organizations_url":"https://api.github.com/users/dotansimha/orgs","repos_url":"https://api.github.com/users/dotansimha/repos","events_url":"https://api.github.com/users/dotansimha/events{/privacy}","received_events_url":"https://api.github.com/users/dotansimha/received_events","type":"User","site_admin":false},"body":"ok","created_at":"2016-03-09T09:59:48Z","updated_at":"2016-03-09T09:59:48Z","html_url":"https://github.com/GuildOfProgrammers/swagger/pull/2#discussion_r55495291","pull_request_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/GuildOfProgrammers/swagger/pulls/comments/55495291"},"html":{"href":"https://github.com/GuildOfProgrammers/swagger/pull/2#discussion_r55495291"},"pull_request":{"href":"https://api.github.com/repos/GuildOfProgrammers/swagger/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/GuildOfProgrammers/swagger/pulls/2","id":62200208,"html_url":"https://github.com/GuildOfProgrammers/swagger/pull/2","diff_url":"https://github.com/GuildOfProgrammers/swagger/pull/2.diff","patch_url":"https://github.com/GuildOfProgrammers/swagger/pull/2.patch","issue_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/issues/2","number":2,"state":"open","locked":false,"title":"Added support for promises in the transformers","user":{"login":"dotansimha","id":3680083,"avatar_url":"https://avatars.githubusercontent.com/u/3680083?v=3","gravatar_id":"","url":"https://api.github.com/users/dotansimha","html_url":"https://github.com/dotansimha","followers_url":"https://api.github.com/users/dotansimha/followers","following_url":"https://api.github.com/users/dotansimha/following{/other_user}","gists_url":"https://api.github.com/users/dotansimha/gists{/gist_id}","starred_url":"https://api.github.com/users/dotansimha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotansimha/subscriptions","organizations_url":"https://api.github.com/users/dotansimha/orgs","repos_url":"https://api.github.com/users/dotansimha/repos","events_url":"https://api.github.com/users/dotansimha/events{/privacy}","received_events_url":"https://api.github.com/users/dotansimha/received_events","type":"User","site_admin":false},"body":"@netanelgilad ","created_at":"2016-03-09T09:26:07Z","updated_at":"2016-03-09T09:59:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b96e82a1227290b2b3715d55d2b0d2d34e78554a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/pulls/2/commits","review_comments_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/pulls/2/comments","review_comment_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/issues/2/comments","statuses_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/statuses/92b2b95a892c5ab82594a83b12ba9e1c00d6aa45","head":{"label":"GuildOfProgrammers:support_promise_transformer","ref":"support_promise_transformer","sha":"92b2b95a892c5ab82594a83b12ba9e1c00d6aa45","user":{"login":"GuildOfProgrammers","id":14879286,"avatar_url":"https://avatars.githubusercontent.com/u/14879286?v=3","gravatar_id":"","url":"https://api.github.com/users/GuildOfProgrammers","html_url":"https://github.com/GuildOfProgrammers","followers_url":"https://api.github.com/users/GuildOfProgrammers/followers","following_url":"https://api.github.com/users/GuildOfProgrammers/following{/other_user}","gists_url":"https://api.github.com/users/GuildOfProgrammers/gists{/gist_id}","starred_url":"https://api.github.com/users/GuildOfProgrammers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuildOfProgrammers/subscriptions","organizations_url":"https://api.github.com/users/GuildOfProgrammers/orgs","repos_url":"https://api.github.com/users/GuildOfProgrammers/repos","events_url":"https://api.github.com/users/GuildOfProgrammers/events{/privacy}","received_events_url":"https://api.github.com/users/GuildOfProgrammers/received_events","type":"Organization","site_admin":false},"repo":{"id":52260543,"name":"swagger","full_name":"GuildOfProgrammers/swagger","owner":{"login":"GuildOfProgrammers","id":14879286,"avatar_url":"https://avatars.githubusercontent.com/u/14879286?v=3","gravatar_id":"","url":"https://api.github.com/users/GuildOfProgrammers","html_url":"https://github.com/GuildOfProgrammers","followers_url":"https://api.github.com/users/GuildOfProgrammers/followers","following_url":"https://api.github.com/users/GuildOfProgrammers/following{/other_user}","gists_url":"https://api.github.com/users/GuildOfProgrammers/gists{/gist_id}","starred_url":"https://api.github.com/users/GuildOfProgrammers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuildOfProgrammers/subscriptions","organizations_url":"https://api.github.com/users/GuildOfProgrammers/orgs","repos_url":"https://api.github.com/users/GuildOfProgrammers/repos","events_url":"https://api.github.com/users/GuildOfProgrammers/events{/privacy}","received_events_url":"https://api.github.com/users/GuildOfProgrammers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GuildOfProgrammers/swagger","description":"Swagger Rest API for Meteor","fork":false,"url":"https://api.github.com/repos/GuildOfProgrammers/swagger","forks_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/forks","keys_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/teams","hooks_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/hooks","issue_events_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/issues/events{/number}","events_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/events","assignees_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/assignees{/user}","branches_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/branches{/branch}","tags_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/tags","blobs_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/git/refs{/sha}","trees_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/statuses/{sha}","languages_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/languages","stargazers_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/stargazers","contributors_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/contributors","subscribers_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/subscribers","subscription_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/subscription","commits_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/commits{/sha}","git_commits_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/git/commits{/sha}","comments_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/comments{/number}","issue_comment_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/issues/comments{/number}","contents_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/contents/{+path}","compare_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/merges","archive_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/downloads","issues_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/issues{/number}","pulls_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/pulls{/number}","milestones_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/milestones{/number}","notifications_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/labels{/name}","releases_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/releases{/id}","deployments_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/deployments","created_at":"2016-02-22T09:02:52Z","updated_at":"2016-03-03T13:29:40Z","pushed_at":"2016-03-09T09:26:32Z","git_url":"git://github.com/GuildOfProgrammers/swagger.git","ssh_url":"git@github.com:GuildOfProgrammers/swagger.git","clone_url":"https://github.com/GuildOfProgrammers/swagger.git","svn_url":"https://github.com/GuildOfProgrammers/swagger","homepage":null,"size":18,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":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":3,"default_branch":"master"}},"base":{"label":"GuildOfProgrammers:master","ref":"master","sha":"7ad802e5de879ae910d3665dc8353feac18aea6e","user":{"login":"GuildOfProgrammers","id":14879286,"avatar_url":"https://avatars.githubusercontent.com/u/14879286?v=3","gravatar_id":"","url":"https://api.github.com/users/GuildOfProgrammers","html_url":"https://github.com/GuildOfProgrammers","followers_url":"https://api.github.com/users/GuildOfProgrammers/followers","following_url":"https://api.github.com/users/GuildOfProgrammers/following{/other_user}","gists_url":"https://api.github.com/users/GuildOfProgrammers/gists{/gist_id}","starred_url":"https://api.github.com/users/GuildOfProgrammers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuildOfProgrammers/subscriptions","organizations_url":"https://api.github.com/users/GuildOfProgrammers/orgs","repos_url":"https://api.github.com/users/GuildOfProgrammers/repos","events_url":"https://api.github.com/users/GuildOfProgrammers/events{/privacy}","received_events_url":"https://api.github.com/users/GuildOfProgrammers/received_events","type":"Organization","site_admin":false},"repo":{"id":52260543,"name":"swagger","full_name":"GuildOfProgrammers/swagger","owner":{"login":"GuildOfProgrammers","id":14879286,"avatar_url":"https://avatars.githubusercontent.com/u/14879286?v=3","gravatar_id":"","url":"https://api.github.com/users/GuildOfProgrammers","html_url":"https://github.com/GuildOfProgrammers","followers_url":"https://api.github.com/users/GuildOfProgrammers/followers","following_url":"https://api.github.com/users/GuildOfProgrammers/following{/other_user}","gists_url":"https://api.github.com/users/GuildOfProgrammers/gists{/gist_id}","starred_url":"https://api.github.com/users/GuildOfProgrammers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuildOfProgrammers/subscriptions","organizations_url":"https://api.github.com/users/GuildOfProgrammers/orgs","repos_url":"https://api.github.com/users/GuildOfProgrammers/repos","events_url":"https://api.github.com/users/GuildOfProgrammers/events{/privacy}","received_events_url":"https://api.github.com/users/GuildOfProgrammers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GuildOfProgrammers/swagger","description":"Swagger Rest API for Meteor","fork":false,"url":"https://api.github.com/repos/GuildOfProgrammers/swagger","forks_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/forks","keys_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/teams","hooks_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/hooks","issue_events_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/issues/events{/number}","events_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/events","assignees_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/assignees{/user}","branches_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/branches{/branch}","tags_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/tags","blobs_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/git/refs{/sha}","trees_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/statuses/{sha}","languages_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/languages","stargazers_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/stargazers","contributors_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/contributors","subscribers_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/subscribers","subscription_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/subscription","commits_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/commits{/sha}","git_commits_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/git/commits{/sha}","comments_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/comments{/number}","issue_comment_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/issues/comments{/number}","contents_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/contents/{+path}","compare_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/merges","archive_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/downloads","issues_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/issues{/number}","pulls_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/pulls{/number}","milestones_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/milestones{/number}","notifications_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/labels{/name}","releases_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/releases{/id}","deployments_url":"https://api.github.com/repos/GuildOfProgrammers/swagger/deployments","created_at":"2016-02-22T09:02:52Z","updated_at":"2016-03-03T13:29:40Z","pushed_at":"2016-03-09T09:26:32Z","git_url":"git://github.com/GuildOfProgrammers/swagger.git","ssh_url":"git@github.com:GuildOfProgrammers/swagger.git","clone_url":"https://github.com/GuildOfProgrammers/swagger.git","svn_url":"https://github.com/GuildOfProgrammers/swagger","homepage":null,"size":18,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":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":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GuildOfProgrammers/swagger/pulls/2"},"html":{"href":"https://github.com/GuildOfProgrammers/swagger/pull/2"},"issue":{"href":"https://api.github.com/repos/GuildOfProgrammers/swagger/issues/2"},"comments":{"href":"https://api.github.com/repos/GuildOfProgrammers/swagger/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/GuildOfProgrammers/swagger/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/GuildOfProgrammers/swagger/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GuildOfProgrammers/swagger/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/GuildOfProgrammers/swagger/statuses/92b2b95a892c5ab82594a83b12ba9e1c00d6aa45"}}}}