{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1173","labels_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1173/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1173/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1173/events","html_url":"https://github.com/swagger-api/swagger-core/issues/1173","id":88873686,"number":1173,"title":"New annotation proposal: @ApiIgnore","user":{"login":"who","id":282534,"avatar_url":"https://avatars.githubusercontent.com/u/282534?v=3","gravatar_id":"","url":"https://api.github.com/users/who","html_url":"https://github.com/who","followers_url":"https://api.github.com/users/who/followers","following_url":"https://api.github.com/users/who/following{/other_user}","gists_url":"https://api.github.com/users/who/gists{/gist_id}","starred_url":"https://api.github.com/users/who/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/who/subscriptions","organizations_url":"https://api.github.com/users/who/orgs","repos_url":"https://api.github.com/users/who/repos","events_url":"https://api.github.com/users/who/events{/privacy}","received_events_url":"https://api.github.com/users/who/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-06-17T00:24:37Z","updated_at":"2015-07-13T19:27:23Z","closed_at":null,"body":"Springfox has a really convenient way of excluding things from being included by swagger's parsing stack.  [ See https://github.com/springfox/springfox/blob/master/springfox-core/src/main/java/springfox/documentation/annotations/ApiIgnore.java  ]\r\n\r\nThis is very useful, and I would like to recommend that something to this effect be included in the Swagger core annotation libraries."},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-core/issues/comments/121030859","html_url":"https://github.com/swagger-api/swagger-core/issues/1173#issuecomment-121030859","issue_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1173","id":121030859,"user":{"login":"who","id":282534,"avatar_url":"https://avatars.githubusercontent.com/u/282534?v=3","gravatar_id":"","url":"https://api.github.com/users/who","html_url":"https://github.com/who","followers_url":"https://api.github.com/users/who/followers","following_url":"https://api.github.com/users/who/following{/other_user}","gists_url":"https://api.github.com/users/who/gists{/gist_id}","starred_url":"https://api.github.com/users/who/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/who/subscriptions","organizations_url":"https://api.github.com/users/who/orgs","repos_url":"https://api.github.com/users/who/repos","events_url":"https://api.github.com/users/who/events{/privacy}","received_events_url":"https://api.github.com/users/who/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T19:27:23Z","updated_at":"2015-07-13T19:27:23Z","body":"Yes, you could definitely hide at the property level, but you'd have to add that annotation any time the class is referred to across all models that use it. If you wanted an authoritative way to ensure a class is never leaked out when referred to, class-level is most assuring, as it safeguards against the event that you miss ignoring one of the model properties at the getter/field level."}}