{"action":"opened","number":1611,"pull_request":{"url":"https://api.github.com/repos/swagger-api/swagger-core/pulls/1611","id":56481393,"html_url":"https://github.com/swagger-api/swagger-core/pull/1611","diff_url":"https://github.com/swagger-api/swagger-core/pull/1611.diff","patch_url":"https://github.com/swagger-api/swagger-core/pull/1611.patch","issue_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1611","number":1611,"state":"open","locked":false,"title":"Issue 1482 refactor","user":{"login":"frantuma","id":15786658,"avatar_url":"https://avatars.githubusercontent.com/u/15786658?v=3","gravatar_id":"","url":"https://api.github.com/users/frantuma","html_url":"https://github.com/frantuma","followers_url":"https://api.github.com/users/frantuma/followers","following_url":"https://api.github.com/users/frantuma/following{/other_user}","gists_url":"https://api.github.com/users/frantuma/gists{/gist_id}","starred_url":"https://api.github.com/users/frantuma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frantuma/subscriptions","organizations_url":"https://api.github.com/users/frantuma/orgs","repos_url":"https://api.github.com/users/frantuma/repos","events_url":"https://api.github.com/users/frantuma/events{/privacy}","received_events_url":"https://api.github.com/users/frantuma/received_events","type":"User","site_admin":false},"body":"As discussed with @fehguy, PR aims at fixing and references issues #1482  #1384, PR #1397.\r\n\r\nIt basically allows to configure more than one \"Swagger context\" (logical concept including SwaggerConfig, Swagger initial info and used Scanner instance) in same JVM and same web application, one for each configured servlet/servletConfig.\r\n\r\nAn example of \"multi context\" setup can be find in samples project PR https://github.com/swagger-api/swagger-samples/pull/46\r\nwhere a \"swagger.context.id\" initParam is provided for each separate \"swagger context\" instance (see sample web.xml)\r\n\r\nApproach is sub-optimal, but as discussed quite some additional refactor would be needed to accomplish a nicer solution, with quite high risk related to compatibility.\r\n","created_at":"2016-01-19T15:31:54Z","updated_at":"2016-01-19T15:31:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/swagger-api/swagger-core/pulls/1611/commits","review_comments_url":"https://api.github.com/repos/swagger-api/swagger-core/pulls/1611/comments","review_comment_url":"https://api.github.com/repos/swagger-api/swagger-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1611/comments","statuses_url":"https://api.github.com/repos/swagger-api/swagger-core/statuses/451d6c20a6368e5f6acb2f241d6c5a7efbc7a071","head":{"label":"frantuma:issue_1482_refactor","ref":"issue_1482_refactor","sha":"451d6c20a6368e5f6acb2f241d6c5a7efbc7a071","user":{"login":"frantuma","id":15786658,"avatar_url":"https://avatars.githubusercontent.com/u/15786658?v=3","gravatar_id":"","url":"https://api.github.com/users/frantuma","html_url":"https://github.com/frantuma","followers_url":"https://api.github.com/users/frantuma/followers","following_url":"https://api.github.com/users/frantuma/following{/other_user}","gists_url":"https://api.github.com/users/frantuma/gists{/gist_id}","starred_url":"https://api.github.com/users/frantuma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frantuma/subscriptions","organizations_url":"https://api.github.com/users/frantuma/orgs","repos_url":"https://api.github.com/users/frantuma/repos","events_url":"https://api.github.com/users/frantuma/events{/privacy}","received_events_url":"https://api.github.com/users/frantuma/received_events","type":"User","site_admin":false},"repo":{"id":46425213,"name":"swagger-core","full_name":"frantuma/swagger-core","owner":{"login":"frantuma","id":15786658,"avatar_url":"https://avatars.githubusercontent.com/u/15786658?v=3","gravatar_id":"","url":"https://api.github.com/users/frantuma","html_url":"https://github.com/frantuma","followers_url":"https://api.github.com/users/frantuma/followers","following_url":"https://api.github.com/users/frantuma/following{/other_user}","gists_url":"https://api.github.com/users/frantuma/gists{/gist_id}","starred_url":"https://api.github.com/users/frantuma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frantuma/subscriptions","organizations_url":"https://api.github.com/users/frantuma/orgs","repos_url":"https://api.github.com/users/frantuma/repos","events_url":"https://api.github.com/users/frantuma/events{/privacy}","received_events_url":"https://api.github.com/users/frantuma/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/frantuma/swagger-core","description":"Examples and server integrations for generating the Swagger API Specification, which enables easy access to your REST API","fork":true,"url":"https://api.github.com/repos/frantuma/swagger-core","forks_url":"https://api.github.com/repos/frantuma/swagger-core/forks","keys_url":"https://api.github.com/repos/frantuma/swagger-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/frantuma/swagger-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/frantuma/swagger-core/teams","hooks_url":"https://api.github.com/repos/frantuma/swagger-core/hooks","issue_events_url":"https://api.github.com/repos/frantuma/swagger-core/issues/events{/number}","events_url":"https://api.github.com/repos/frantuma/swagger-core/events","assignees_url":"https://api.github.com/repos/frantuma/swagger-core/assignees{/user}","branches_url":"https://api.github.com/repos/frantuma/swagger-core/branches{/branch}","tags_url":"https://api.github.com/repos/frantuma/swagger-core/tags","blobs_url":"https://api.github.com/repos/frantuma/swagger-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/frantuma/swagger-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/frantuma/swagger-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/frantuma/swagger-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/frantuma/swagger-core/statuses/{sha}","languages_url":"https://api.github.com/repos/frantuma/swagger-core/languages","stargazers_url":"https://api.github.com/repos/frantuma/swagger-core/stargazers","contributors_url":"https://api.github.com/repos/frantuma/swagger-core/contributors","subscribers_url":"https://api.github.com/repos/frantuma/swagger-core/subscribers","subscription_url":"https://api.github.com/repos/frantuma/swagger-core/subscription","commits_url":"https://api.github.com/repos/frantuma/swagger-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/frantuma/swagger-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/frantuma/swagger-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/frantuma/swagger-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/frantuma/swagger-core/contents/{+path}","compare_url":"https://api.github.com/repos/frantuma/swagger-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/frantuma/swagger-core/merges","archive_url":"https://api.github.com/repos/frantuma/swagger-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/frantuma/swagger-core/downloads","issues_url":"https://api.github.com/repos/frantuma/swagger-core/issues{/number}","pulls_url":"https://api.github.com/repos/frantuma/swagger-core/pulls{/number}","milestones_url":"https://api.github.com/repos/frantuma/swagger-core/milestones{/number}","notifications_url":"https://api.github.com/repos/frantuma/swagger-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/frantuma/swagger-core/labels{/name}","releases_url":"https://api.github.com/repos/frantuma/swagger-core/releases{/id}","created_at":"2015-11-18T14:48:04Z","updated_at":"2016-01-13T10:07:32Z","pushed_at":"2016-01-19T13:58:11Z","git_url":"git://github.com/frantuma/swagger-core.git","ssh_url":"git@github.com:frantuma/swagger-core.git","clone_url":"https://github.com/frantuma/swagger-core.git","svn_url":"https://github.com/frantuma/swagger-core","homepage":"http://swagger.io","size":8407,"stargazers_count":0,"watchers_count":0,"language":"Java","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:master","ref":"master","sha":"17587ab4deaeee03b25445f93fcdda34479c3e62","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":2003641,"name":"swagger-core","full_name":"swagger-api/swagger-core","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-core","description":"Examples and server integrations for generating the Swagger API Specification, which enables easy access to your REST API","fork":false,"url":"https://api.github.com/repos/swagger-api/swagger-core","forks_url":"https://api.github.com/repos/swagger-api/swagger-core/forks","keys_url":"https://api.github.com/repos/swagger-api/swagger-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swagger-api/swagger-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swagger-api/swagger-core/teams","hooks_url":"https://api.github.com/repos/swagger-api/swagger-core/hooks","issue_events_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/events{/number}","events_url":"https://api.github.com/repos/swagger-api/swagger-core/events","assignees_url":"https://api.github.com/repos/swagger-api/swagger-core/assignees{/user}","branches_url":"https://api.github.com/repos/swagger-api/swagger-core/branches{/branch}","tags_url":"https://api.github.com/repos/swagger-api/swagger-core/tags","blobs_url":"https://api.github.com/repos/swagger-api/swagger-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swagger-api/swagger-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swagger-api/swagger-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/swagger-api/swagger-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swagger-api/swagger-core/statuses/{sha}","languages_url":"https://api.github.com/repos/swagger-api/swagger-core/languages","stargazers_url":"https://api.github.com/repos/swagger-api/swagger-core/stargazers","contributors_url":"https://api.github.com/repos/swagger-api/swagger-core/contributors","subscribers_url":"https://api.github.com/repos/swagger-api/swagger-core/subscribers","subscription_url":"https://api.github.com/repos/swagger-api/swagger-core/subscription","commits_url":"https://api.github.com/repos/swagger-api/swagger-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/swagger-api/swagger-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/swagger-api/swagger-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/swagger-api/swagger-core/contents/{+path}","compare_url":"https://api.github.com/repos/swagger-api/swagger-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swagger-api/swagger-core/merges","archive_url":"https://api.github.com/repos/swagger-api/swagger-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swagger-api/swagger-core/downloads","issues_url":"https://api.github.com/repos/swagger-api/swagger-core/issues{/number}","pulls_url":"https://api.github.com/repos/swagger-api/swagger-core/pulls{/number}","milestones_url":"https://api.github.com/repos/swagger-api/swagger-core/milestones{/number}","notifications_url":"https://api.github.com/repos/swagger-api/swagger-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swagger-api/swagger-core/labels{/name}","releases_url":"https://api.github.com/repos/swagger-api/swagger-core/releases{/id}","created_at":"2011-07-05T23:44:11Z","updated_at":"2016-01-19T04:17:51Z","pushed_at":"2016-01-18T18:11:10Z","git_url":"git://github.com/swagger-api/swagger-core.git","ssh_url":"git@github.com:swagger-api/swagger-core.git","clone_url":"https://github.com/swagger-api/swagger-core.git","svn_url":"https://github.com/swagger-api/swagger-core","homepage":"http://swagger.io","size":11210,"stargazers_count":3078,"watchers_count":3078,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1047,"mirror_url":null,"open_issues_count":91,"forks":1047,"open_issues":91,"watchers":3078,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/swagger-api/swagger-core/pulls/1611"},"html":{"href":"https://github.com/swagger-api/swagger-core/pull/1611"},"issue":{"href":"https://api.github.com/repos/swagger-api/swagger-core/issues/1611"},"comments":{"href":"https://api.github.com/repos/swagger-api/swagger-core/issues/1611/comments"},"review_comments":{"href":"https://api.github.com/repos/swagger-api/swagger-core/pulls/1611/comments"},"review_comment":{"href":"https://api.github.com/repos/swagger-api/swagger-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/swagger-api/swagger-core/pulls/1611/commits"},"statuses":{"href":"https://api.github.com/repos/swagger-api/swagger-core/statuses/451d6c20a6368e5f6acb2f241d6c5a7efbc7a071"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":8,"additions":748,"deletions":41,"changed_files":11}}