{"action":"closed","issue":{"url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/issues/613","repository_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle","labels_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/issues/613/labels{/name}","comments_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/issues/613/comments","events_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/issues/613/events","html_url":"https://github.com/domaindrivendev/Swashbuckle/issues/613","id":127645231,"number":613,"title":"Controller not displayed whith namespaced versioning API","user":{"login":"alfhv","id":5492961,"avatar_url":"https://avatars.githubusercontent.com/u/5492961?v=3","gravatar_id":"","url":"https://api.github.com/users/alfhv","html_url":"https://github.com/alfhv","followers_url":"https://api.github.com/users/alfhv/followers","following_url":"https://api.github.com/users/alfhv/following{/other_user}","gists_url":"https://api.github.com/users/alfhv/gists{/gist_id}","starred_url":"https://api.github.com/users/alfhv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfhv/subscriptions","organizations_url":"https://api.github.com/users/alfhv/orgs","repos_url":"https://api.github.com/users/alfhv/repos","events_url":"https://api.github.com/users/alfhv/events{/privacy}","received_events_url":"https://api.github.com/users/alfhv/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-20T09:58:16Z","updated_at":"2016-02-09T06:33:49Z","closed_at":"2016-02-09T06:33:49Z","body":"Hello,\r\nI have aa API using versioning on namespace like:\r\n\r\nControllers\\\r\n---v1\\\r\n-----ContactsController\r\n-----ProductsController\r\n---v2\\\r\n-----ProductsController\r\n\r\nnamespaces are named as:\r\nMyApi.Controllers.v1 and MyApi.Controllers.v2\r\n\r\nI'm enabling versioning as:\r\n\r\n    config.Services.Replace(typeof(IHttpControllerSelector), new VersionedApiControllerSelector(config));\r\n    config.Services.Replace(typeof(IApiExplorer), new VersionedApiExplorer(config));\r\n    config.DependencyResolver = new DependencyResolver(rootContainer);\r\n    ApiVersioning.Configure(config).ConfigureRequestVersionDetector<DefaultRouteKeyVersionDetector>();\r\n\r\nversions are also registered on\r\n\r\n    public void Configuration(IAppBuilder app)\r\n    (...)\r\n    config.EnableSwagger(c =>\r\n    {\r\n        (...)\r\n        vc =>\r\n        {\r\n            vc.Version(\"v2\", \"Swashbuckle Dummy API V2\");\r\n            vc.Version(\"v1\", \"Swashbuckle Dummy API V1\");\r\n        });\r\n    }\r\n    (...)\r\n    }\r\n\r\nEverything works almost ok, but I have an issue on swagger UI, the problem is that Products controller is not available for version v1, only on v2. If I rename it to something else then I have it displayed on swagger UI\r\n\r\nI was looking at source code on \r\n    namespace SDammann.WebApi.Versioning\r\n    public class VersionedApiControllerSelector : IHttpControllerSelector {\r\n    public IDictionary<string, HttpControllerDescriptor> GetControllerMapping() {}\r\n\r\nThis method is creating a dictionary with a MultiVersionHttpControllerDescriptor, on this dictionary, if 2 controllers have the same name, then we will have only one entry, one key related to all version of controllers, and the latest version is on top of list, and is this latest version the only one available on swagger UI.\r\ncould be this the reason why only one of them is displayed on UI ?\r\n\r\nthanks "}}