{"action":"created","comment":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/pulls/comments/25739052","id":25739052,"diff_hunk":"@@ -1478,9 +1481,36 @@ Operation.prototype.encodePathParam = function(pathParam) {\n   }\n };\n \n-var Model = function(name, definition) {\n+var Model = function(name, definition, allDefinitions) {\n   this.name = name;\n   this.definition = definition || {};\n+  if(definition.allOf) {\n+    var resolve = function(definition, updatedDefinition, ignoreModels) {\n+      if (!definition)\n+        return;\n+      \n+      if (definition.allOf) {\n+        for (var i=0,len=definition.allOf.length;i<len;i++) {\n+          resolve(definition.allOf[i], updatedDefinition, ignoreModels);\n+        }\n+      } else if (definition.$ref) {\n+        var simpleName = simpleRef(definition.$ref);\n+        if (typeof ignoreModels[simpleName] !== true) {","path":"lib/swagger-client.js","position":null,"original_position":56,"commit_id":"b8463881729479d4cac1c26a58e7e68f3fbeb4fa","original_commit_id":"81e4beecb5b66bf203f627fe17929bd388a9873b","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":"Please avoid using `for..in` loop and use Underscore methods. We have underscore dependency in Swagger UI","created_at":"2015-03-03T23:31:49Z","updated_at":"2015-03-03T23:31:49Z","html_url":"https://github.com/swagger-api/swagger-ui/pull/990#discussion_r25739052","pull_request_url":"https://api.github.com/repos/swagger-api/swagger-ui/pulls/990","_links":{"self":{"href":"https://api.github.com/repos/swagger-api/swagger-ui/pulls/comments/25739052"},"html":{"href":"https://github.com/swagger-api/swagger-ui/pull/990#discussion_r25739052"},"pull_request":{"href":"https://api.github.com/repos/swagger-api/swagger-ui/pulls/990"}}},"pull_request":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/pulls/990","id":30345894,"html_url":"https://github.com/swagger-api/swagger-ui/pull/990","diff_url":"https://github.com/swagger-api/swagger-ui/pull/990.diff","patch_url":"https://github.com/swagger-api/swagger-ui/pull/990.patch","issue_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/990","number":990,"state":"open","locked":false,"title":"Added support for \"additionalProperties\" and \"allOf\" in the UI.","user":{"login":"jpeiffer","id":6424555,"avatar_url":"https://avatars.githubusercontent.com/u/6424555?v=3","gravatar_id":"","url":"https://api.github.com/users/jpeiffer","html_url":"https://github.com/jpeiffer","followers_url":"https://api.github.com/users/jpeiffer/followers","following_url":"https://api.github.com/users/jpeiffer/following{/other_user}","gists_url":"https://api.github.com/users/jpeiffer/gists{/gist_id}","starred_url":"https://api.github.com/users/jpeiffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpeiffer/subscriptions","organizations_url":"https://api.github.com/users/jpeiffer/orgs","repos_url":"https://api.github.com/users/jpeiffer/repos","events_url":"https://api.github.com/users/jpeiffer/events{/privacy}","received_events_url":"https://api.github.com/users/jpeiffer/received_events","type":"User","site_admin":false},"body":"Added support within the models for the \"additionalProperties\" option to render as a proper JS Map and for \"allOf\" to be able to properly extend models.","created_at":"2015-03-03T04:29:09Z","updated_at":"2015-03-03T23:31:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"194bbb4968c8ce6b845a9300d1cd60f0b9e03e78","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/swagger-api/swagger-ui/pulls/990/commits","review_comments_url":"https://api.github.com/repos/swagger-api/swagger-ui/pulls/990/comments","review_comment_url":"https://api.github.com/repos/swagger-api/swagger-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/990/comments","statuses_url":"https://api.github.com/repos/swagger-api/swagger-ui/statuses/b8463881729479d4cac1c26a58e7e68f3fbeb4fa","head":{"label":"jpeiffer:master","ref":"master","sha":"b8463881729479d4cac1c26a58e7e68f3fbeb4fa","user":{"login":"jpeiffer","id":6424555,"avatar_url":"https://avatars.githubusercontent.com/u/6424555?v=3","gravatar_id":"","url":"https://api.github.com/users/jpeiffer","html_url":"https://github.com/jpeiffer","followers_url":"https://api.github.com/users/jpeiffer/followers","following_url":"https://api.github.com/users/jpeiffer/following{/other_user}","gists_url":"https://api.github.com/users/jpeiffer/gists{/gist_id}","starred_url":"https://api.github.com/users/jpeiffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpeiffer/subscriptions","organizations_url":"https://api.github.com/users/jpeiffer/orgs","repos_url":"https://api.github.com/users/jpeiffer/repos","events_url":"https://api.github.com/users/jpeiffer/events{/privacy}","received_events_url":"https://api.github.com/users/jpeiffer/received_events","type":"User","site_admin":false},"repo":{"id":31345410,"name":"swagger-ui","full_name":"jpeiffer/swagger-ui","owner":{"login":"jpeiffer","id":6424555,"avatar_url":"https://avatars.githubusercontent.com/u/6424555?v=3","gravatar_id":"","url":"https://api.github.com/users/jpeiffer","html_url":"https://github.com/jpeiffer","followers_url":"https://api.github.com/users/jpeiffer/followers","following_url":"https://api.github.com/users/jpeiffer/following{/other_user}","gists_url":"https://api.github.com/users/jpeiffer/gists{/gist_id}","starred_url":"https://api.github.com/users/jpeiffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpeiffer/subscriptions","organizations_url":"https://api.github.com/users/jpeiffer/orgs","repos_url":"https://api.github.com/users/jpeiffer/repos","events_url":"https://api.github.com/users/jpeiffer/events{/privacy}","received_events_url":"https://api.github.com/users/jpeiffer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jpeiffer/swagger-ui","description":"Swagger UI is a dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.","fork":true,"url":"https://api.github.com/repos/jpeiffer/swagger-ui","forks_url":"https://api.github.com/repos/jpeiffer/swagger-ui/forks","keys_url":"https://api.github.com/repos/jpeiffer/swagger-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jpeiffer/swagger-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jpeiffer/swagger-ui/teams","hooks_url":"https://api.github.com/repos/jpeiffer/swagger-ui/hooks","issue_events_url":"https://api.github.com/repos/jpeiffer/swagger-ui/issues/events{/number}","events_url":"https://api.github.com/repos/jpeiffer/swagger-ui/events","assignees_url":"https://api.github.com/repos/jpeiffer/swagger-ui/assignees{/user}","branches_url":"https://api.github.com/repos/jpeiffer/swagger-ui/branches{/branch}","tags_url":"https://api.github.com/repos/jpeiffer/swagger-ui/tags","blobs_url":"https://api.github.com/repos/jpeiffer/swagger-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jpeiffer/swagger-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jpeiffer/swagger-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/jpeiffer/swagger-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jpeiffer/swagger-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/jpeiffer/swagger-ui/languages","stargazers_url":"https://api.github.com/repos/jpeiffer/swagger-ui/stargazers","contributors_url":"https://api.github.com/repos/jpeiffer/swagger-ui/contributors","subscribers_url":"https://api.github.com/repos/jpeiffer/swagger-ui/subscribers","subscription_url":"https://api.github.com/repos/jpeiffer/swagger-ui/subscription","commits_url":"https://api.github.com/repos/jpeiffer/swagger-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/jpeiffer/swagger-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/jpeiffer/swagger-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/jpeiffer/swagger-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/jpeiffer/swagger-ui/contents/{+path}","compare_url":"https://api.github.com/repos/jpeiffer/swagger-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jpeiffer/swagger-ui/merges","archive_url":"https://api.github.com/repos/jpeiffer/swagger-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jpeiffer/swagger-ui/downloads","issues_url":"https://api.github.com/repos/jpeiffer/swagger-ui/issues{/number}","pulls_url":"https://api.github.com/repos/jpeiffer/swagger-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/jpeiffer/swagger-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/jpeiffer/swagger-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jpeiffer/swagger-ui/labels{/name}","releases_url":"https://api.github.com/repos/jpeiffer/swagger-ui/releases{/id}","created_at":"2015-02-26T01:44:03Z","updated_at":"2015-03-03T23:31:25Z","pushed_at":"2015-03-03T23:31:25Z","git_url":"git://github.com/jpeiffer/swagger-ui.git","ssh_url":"git@github.com:jpeiffer/swagger-ui.git","clone_url":"https://github.com/jpeiffer/swagger-ui.git","svn_url":"https://github.com/jpeiffer/swagger-ui","homepage":"http://swagger.io","size":5209,"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":"swagger-api:develop_2.0","ref":"develop_2.0","sha":"bcd09ed01e61da956f1dcec0362d60c042040f3c","user":{"login":"swagger-api","id":7658037,"avatar_url":"https://avatars.githubusercontent.com/u/7658037?v=3","gravatar_id":"","url":"https://api.github.com/users/swagger-api","html_url":"https://github.com/swagger-api","followers_url":"https://api.github.com/users/swagger-api/followers","following_url":"https://api.github.com/users/swagger-api/following{/other_user}","gists_url":"https://api.github.com/users/swagger-api/gists{/gist_id}","starred_url":"https://api.github.com/users/swagger-api/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swagger-api/subscriptions","organizations_url":"https://api.github.com/users/swagger-api/orgs","repos_url":"https://api.github.com/users/swagger-api/repos","events_url":"https://api.github.com/users/swagger-api/events{/privacy}","received_events_url":"https://api.github.com/users/swagger-api/received_events","type":"Organization","site_admin":false},"repo":{"id":2055965,"name":"swagger-ui","full_name":"swagger-api/swagger-ui","owner":{"login":"swagger-api","id":7658037,"avatar_url":"https://avatars.githubusercontent.com/u/7658037?v=3","gravatar_id":"","url":"https://api.github.com/users/swagger-api","html_url":"https://github.com/swagger-api","followers_url":"https://api.github.com/users/swagger-api/followers","following_url":"https://api.github.com/users/swagger-api/following{/other_user}","gists_url":"https://api.github.com/users/swagger-api/gists{/gist_id}","starred_url":"https://api.github.com/users/swagger-api/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swagger-api/subscriptions","organizations_url":"https://api.github.com/users/swagger-api/orgs","repos_url":"https://api.github.com/users/swagger-api/repos","events_url":"https://api.github.com/users/swagger-api/events{/privacy}","received_events_url":"https://api.github.com/users/swagger-api/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/swagger-api/swagger-ui","description":"Swagger UI is a dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.","fork":false,"url":"https://api.github.com/repos/swagger-api/swagger-ui","forks_url":"https://api.github.com/repos/swagger-api/swagger-ui/forks","keys_url":"https://api.github.com/repos/swagger-api/swagger-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swagger-api/swagger-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swagger-api/swagger-ui/teams","hooks_url":"https://api.github.com/repos/swagger-api/swagger-ui/hooks","issue_events_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/events{/number}","events_url":"https://api.github.com/repos/swagger-api/swagger-ui/events","assignees_url":"https://api.github.com/repos/swagger-api/swagger-ui/assignees{/user}","branches_url":"https://api.github.com/repos/swagger-api/swagger-ui/branches{/branch}","tags_url":"https://api.github.com/repos/swagger-api/swagger-ui/tags","blobs_url":"https://api.github.com/repos/swagger-api/swagger-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swagger-api/swagger-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swagger-api/swagger-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/swagger-api/swagger-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swagger-api/swagger-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/swagger-api/swagger-ui/languages","stargazers_url":"https://api.github.com/repos/swagger-api/swagger-ui/stargazers","contributors_url":"https://api.github.com/repos/swagger-api/swagger-ui/contributors","subscribers_url":"https://api.github.com/repos/swagger-api/swagger-ui/subscribers","subscription_url":"https://api.github.com/repos/swagger-api/swagger-ui/subscription","commits_url":"https://api.github.com/repos/swagger-api/swagger-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/swagger-api/swagger-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/swagger-api/swagger-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/swagger-api/swagger-ui/contents/{+path}","compare_url":"https://api.github.com/repos/swagger-api/swagger-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swagger-api/swagger-ui/merges","archive_url":"https://api.github.com/repos/swagger-api/swagger-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swagger-api/swagger-ui/downloads","issues_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues{/number}","pulls_url":"https://api.github.com/repos/swagger-api/swagger-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/swagger-api/swagger-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/swagger-api/swagger-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swagger-api/swagger-ui/labels{/name}","releases_url":"https://api.github.com/repos/swagger-api/swagger-ui/releases{/id}","created_at":"2011-07-15T22:56:39Z","updated_at":"2015-03-03T19:45:55Z","pushed_at":"2015-03-02T19:21:50Z","git_url":"git://github.com/swagger-api/swagger-ui.git","ssh_url":"git@github.com:swagger-api/swagger-ui.git","clone_url":"https://github.com/swagger-api/swagger-ui.git","svn_url":"https://github.com/swagger-api/swagger-ui","homepage":"http://swagger.io","size":10031,"stargazers_count":2177,"watchers_count":2177,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1254,"mirror_url":null,"open_issues_count":104,"forks":1254,"open_issues":104,"watchers":2177,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/swagger-api/swagger-ui/pulls/990"},"html":{"href":"https://github.com/swagger-api/swagger-ui/pull/990"},"issue":{"href":"https://api.github.com/repos/swagger-api/swagger-ui/issues/990"},"comments":{"href":"https://api.github.com/repos/swagger-api/swagger-ui/issues/990/comments"},"review_comments":{"href":"https://api.github.com/repos/swagger-api/swagger-ui/pulls/990/comments"},"review_comment":{"href":"https://api.github.com/repos/swagger-api/swagger-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/swagger-api/swagger-ui/pulls/990/commits"},"statuses":{"href":"https://api.github.com/repos/swagger-api/swagger-ui/statuses/b8463881729479d4cac1c26a58e7e68f3fbeb4fa"}}}}