{"action":"opened","issue":{"url":"https://api.github.com/repos/domaindrivendev/Swashbuckle.AspNetCore/issues/764","repository_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle.AspNetCore","labels_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle.AspNetCore/issues/764/labels{/name}","comments_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle.AspNetCore/issues/764/comments","events_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle.AspNetCore/issues/764/events","html_url":"https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/764","id":331790662,"node_id":"MDU6SXNzdWUzMzE3OTA2NjI=","number":764,"title":"Cannot determine if attribute is applied to controller or action","user":{"login":"rcollette","id":136476,"node_id":"MDQ6VXNlcjEzNjQ3Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/136476?v=4","gravatar_id":"","url":"https://api.github.com/users/rcollette","html_url":"https://github.com/rcollette","followers_url":"https://api.github.com/users/rcollette/followers","following_url":"https://api.github.com/users/rcollette/following{/other_user}","gists_url":"https://api.github.com/users/rcollette/gists{/gist_id}","starred_url":"https://api.github.com/users/rcollette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcollette/subscriptions","organizations_url":"https://api.github.com/users/rcollette/orgs","repos_url":"https://api.github.com/users/rcollette/repos","events_url":"https://api.github.com/users/rcollette/events{/privacy}","received_events_url":"https://api.github.com/users/rcollette/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-12T23:37:07Z","updated_at":"2018-06-12T23:37:07Z","closed_at":null,"author_association":"NONE","body":"SwaggerGen 2.5\r\n\r\nPrevious Code\r\n```\r\nvar authorization = context.ApiDescription.ActionAttributes()\r\n                                    .OfType<AuthorizeAttribute>().SingleOrDefault() ??\r\n                                    context.ApiDescription\r\n                                    .ControllerAttributes()\r\n                                    .OfType<AuthorizeAttribute>().SingleOrDefault();\r\n\r\n```\r\nCurrentCode required due to obsoletion\r\n```\r\n            var authorization1 = context.ControllerActionDescriptor.GetControllerAndActionAttributes(true)\r\n                .OfType<AuthorizeAttribute>();\r\n```\r\n\r\nIn the current release I am unable to prioritize attributes that are applied to methods over attributes that are applied to the controller because there is no way, that I can discern, to determine what the attributes returned from `GetControllerAndActionAttributes` are applied to.\r\n\r\n"}}
{"actor":{"display_login":"rcollette"}}