{"action":"closed","number":154,"pull_request":{"url":"https://api.github.com/repos/swagger-api/swagger-core/pulls/154","id":4578092,"html_url":"https://github.com/swagger-api/swagger-core/pull/154","diff_url":"https://github.com/swagger-api/swagger-core/pull/154.diff","patch_url":"https://github.com/swagger-api/swagger-core/pull/154.patch","issue_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/154","number":154,"state":"closed","locked":false,"title":"Support @JsonAutoDetect to enable/disable methods and fields.","user":{"login":"shawnlauzon","id":611529,"avatar_url":"https://avatars.githubusercontent.com/u/611529?v=3","gravatar_id":"","url":"https://api.github.com/users/shawnlauzon","html_url":"https://github.com/shawnlauzon","followers_url":"https://api.github.com/users/shawnlauzon/followers","following_url":"https://api.github.com/users/shawnlauzon/following{/other_user}","gists_url":"https://api.github.com/users/shawnlauzon/gists{/gist_id}","starred_url":"https://api.github.com/users/shawnlauzon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawnlauzon/subscriptions","organizations_url":"https://api.github.com/users/shawnlauzon/orgs","repos_url":"https://api.github.com/users/shawnlauzon/repos","events_url":"https://api.github.com/users/shawnlauzon/events{/privacy}","received_events_url":"https://api.github.com/users/shawnlauzon/received_events","type":"User","site_admin":false},"body":"The current system uses only public fields and methods, and there isn't\r\na very good way of changing this. This commit adds support for\r\n@JsonAutoDetect, which is used by Jackson to configure what types of\r\nfields and methods are supported.\r\n\r\nCaveats:\r\n* Annotation is only supported at class level\r\n* The creatorVisibility is not supported\r\n* Visibility.PUBLIC_ONLY is the default visibility, which is different\r\n  from Jackson, but more consistent with the existing Swagger.\r\n\r\nI considered instead using XmlAccessType, but since Swagger supports\r\nboth Jackson and JAXB annotations, decided to use the one that worked\r\nbetter for us.\r\n\r\nFinally, I did not add unit tests for this. If this seems like a good\r\ndirection, I will write some unit tests and include in this commit.","created_at":"2013-03-12T19:55:31Z","updated_at":"2015-03-08T11:23:34Z","closed_at":"2015-03-08T11:23:34Z","merged_at":null,"merge_commit_sha":"5dc4e540c4fefb3ca97f69e7992ebffb77d70317","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/swagger-api/swagger-core/pulls/154/commits","review_comments_url":"https://api.github.com/repos/swagger-api/swagger-core/pulls/154/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/154/comments","statuses_url":"https://api.github.com/repos/swagger-api/swagger-core/statuses/c5332f4eb10c9fc9aa45ff6341add44ca4a1e5f9","head":{"label":"shawnlauzon:json_auto_detect","ref":"json_auto_detect","sha":"c5332f4eb10c9fc9aa45ff6341add44ca4a1e5f9","user":{"login":"shawnlauzon","id":611529,"avatar_url":"https://avatars.githubusercontent.com/u/611529?v=3","gravatar_id":"","url":"https://api.github.com/users/shawnlauzon","html_url":"https://github.com/shawnlauzon","followers_url":"https://api.github.com/users/shawnlauzon/followers","following_url":"https://api.github.com/users/shawnlauzon/following{/other_user}","gists_url":"https://api.github.com/users/shawnlauzon/gists{/gist_id}","starred_url":"https://api.github.com/users/shawnlauzon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawnlauzon/subscriptions","organizations_url":"https://api.github.com/users/shawnlauzon/orgs","repos_url":"https://api.github.com/users/shawnlauzon/repos","events_url":"https://api.github.com/users/shawnlauzon/events{/privacy}","received_events_url":"https://api.github.com/users/shawnlauzon/received_events","type":"User","site_admin":false},"repo":{"id":8298432,"name":"swagger-core","full_name":"shawnlauzon/swagger-core","owner":{"login":"shawnlauzon","id":611529,"avatar_url":"https://avatars.githubusercontent.com/u/611529?v=3","gravatar_id":"","url":"https://api.github.com/users/shawnlauzon","html_url":"https://github.com/shawnlauzon","followers_url":"https://api.github.com/users/shawnlauzon/followers","following_url":"https://api.github.com/users/shawnlauzon/following{/other_user}","gists_url":"https://api.github.com/users/shawnlauzon/gists{/gist_id}","starred_url":"https://api.github.com/users/shawnlauzon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawnlauzon/subscriptions","organizations_url":"https://api.github.com/users/shawnlauzon/orgs","repos_url":"https://api.github.com/users/shawnlauzon/repos","events_url":"https://api.github.com/users/shawnlauzon/events{/privacy}","received_events_url":"https://api.github.com/users/shawnlauzon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shawnlauzon/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/shawnlauzon/swagger-core","forks_url":"https://api.github.com/repos/shawnlauzon/swagger-core/forks","keys_url":"https://api.github.com/repos/shawnlauzon/swagger-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shawnlauzon/swagger-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shawnlauzon/swagger-core/teams","hooks_url":"https://api.github.com/repos/shawnlauzon/swagger-core/hooks","issue_events_url":"https://api.github.com/repos/shawnlauzon/swagger-core/issues/events{/number}","events_url":"https://api.github.com/repos/shawnlauzon/swagger-core/events","assignees_url":"https://api.github.com/repos/shawnlauzon/swagger-core/assignees{/user}","branches_url":"https://api.github.com/repos/shawnlauzon/swagger-core/branches{/branch}","tags_url":"https://api.github.com/repos/shawnlauzon/swagger-core/tags","blobs_url":"https://api.github.com/repos/shawnlauzon/swagger-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shawnlauzon/swagger-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shawnlauzon/swagger-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/shawnlauzon/swagger-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shawnlauzon/swagger-core/statuses/{sha}","languages_url":"https://api.github.com/repos/shawnlauzon/swagger-core/languages","stargazers_url":"https://api.github.com/repos/shawnlauzon/swagger-core/stargazers","contributors_url":"https://api.github.com/repos/shawnlauzon/swagger-core/contributors","subscribers_url":"https://api.github.com/repos/shawnlauzon/swagger-core/subscribers","subscription_url":"https://api.github.com/repos/shawnlauzon/swagger-core/subscription","commits_url":"https://api.github.com/repos/shawnlauzon/swagger-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/shawnlauzon/swagger-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/shawnlauzon/swagger-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/shawnlauzon/swagger-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/shawnlauzon/swagger-core/contents/{+path}","compare_url":"https://api.github.com/repos/shawnlauzon/swagger-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shawnlauzon/swagger-core/merges","archive_url":"https://api.github.com/repos/shawnlauzon/swagger-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shawnlauzon/swagger-core/downloads","issues_url":"https://api.github.com/repos/shawnlauzon/swagger-core/issues{/number}","pulls_url":"https://api.github.com/repos/shawnlauzon/swagger-core/pulls{/number}","milestones_url":"https://api.github.com/repos/shawnlauzon/swagger-core/milestones{/number}","notifications_url":"https://api.github.com/repos/shawnlauzon/swagger-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shawnlauzon/swagger-core/labels{/name}","releases_url":"https://api.github.com/repos/shawnlauzon/swagger-core/releases{/id}","created_at":"2013-02-19T20:14:47Z","updated_at":"2014-10-22T22:09:06Z","pushed_at":"2013-03-14T15:18:21Z","git_url":"git://github.com/shawnlauzon/swagger-core.git","ssh_url":"git@github.com:shawnlauzon/swagger-core.git","clone_url":"https://github.com/shawnlauzon/swagger-core.git","svn_url":"https://github.com/shawnlauzon/swagger-core","homepage":"http://swagger.wordnik.com","size":1847,"stargazers_count":0,"watchers_count":0,"language":"Scala","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":"e61e460f43d329d2133f9df32e56fa9518661ba0","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":"2015-03-07T04:50:06Z","pushed_at":"2015-03-06T20:14:40Z","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":17713,"stargazers_count":2469,"watchers_count":2469,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":816,"mirror_url":null,"open_issues_count":101,"forks":816,"open_issues":101,"watchers":2469,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/swagger-api/swagger-core/pulls/154"},"html":{"href":"https://github.com/swagger-api/swagger-core/pull/154"},"issue":{"href":"https://api.github.com/repos/swagger-api/swagger-core/issues/154"},"comments":{"href":"https://api.github.com/repos/swagger-api/swagger-core/issues/154/comments"},"review_comments":{"href":"https://api.github.com/repos/swagger-api/swagger-core/pulls/154/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/154/commits"},"statuses":{"href":"https://api.github.com/repos/swagger-api/swagger-core/statuses/c5332f4eb10c9fc9aa45ff6341add44ca4a1e5f9"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":3,"review_comments":0,"commits":1,"additions":28,"deletions":5,"changed_files":1}}