{"action":"created","issue":{"url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/issues/535","labels_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/issues/535/labels{/name}","comments_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/issues/535/comments","events_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/issues/535/events","html_url":"https://github.com/domaindrivendev/Swashbuckle/issues/535","id":111522221,"number":535,"title":"API version should be independent of the URI ","user":{"login":"younanjo","id":957874,"avatar_url":"https://avatars.githubusercontent.com/u/957874?v=3","gravatar_id":"","url":"https://api.github.com/users/younanjo","html_url":"https://github.com/younanjo","followers_url":"https://api.github.com/users/younanjo/followers","following_url":"https://api.github.com/users/younanjo/following{/other_user}","gists_url":"https://api.github.com/users/younanjo/gists{/gist_id}","starred_url":"https://api.github.com/users/younanjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/younanjo/subscriptions","organizations_url":"https://api.github.com/users/younanjo/orgs","repos_url":"https://api.github.com/users/younanjo/repos","events_url":"https://api.github.com/users/younanjo/events{/privacy}","received_events_url":"https://api.github.com/users/younanjo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-15T00:41:49Z","updated_at":"2016-01-11T21:46:06Z","closed_at":null,"body":"Hi,\r\n\r\nIn current implementation of swashbuckle the initialisation requires the following:\r\n\r\nGlobalConfiguration.Configuration\r\n\t\t.EnableSwagger(c =>\r\n\t\t{\r\n\t\t\tc.SingleApiVersion(apiVersion, \"Some Title\");\r\n\t\t})\r\n\t\t.EnableSwaggerUi(c => { });\r\n\r\nwhere apiVersion has the limitation of not having full-stop(.) as part of the string. In CI environment where api's are in version  [major.minor.bugfix] format we have to transform the dots into underscores(_) so for example 1.0.1 becomes 1_0_1.  This has the side effect of api version showing up in Swagger-UI as 1_0_1 which isn't ideal.\r\n\r\nWould it be possible to use a different source to set the api version that shows in swagger-ui and swagger json file? ie:\r\n\r\nGlobalConfiguration.Configuration\r\n\t\t.EnableSwagger(c =>\r\n\t\t{\r\n                        //where CleanupStr() would turn full-stops into underscore (_) and used in url \r\n                       // the second paramter can be used for the swagger-ui and json file actual version in original format\r\n\t\t\tc.SingleApiVersion(CleanupStr(apiVersion),apiVersion, \"Some Title\");\r\n\t\t})\r\n\t\t.EnableSwaggerUi(c => { });"},"comment":{"url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/issues/comments/170700651","html_url":"https://github.com/domaindrivendev/Swashbuckle/issues/535#issuecomment-170700651","issue_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/issues/535","id":170700651,"user":{"login":"sharadagarwal","id":5649639,"avatar_url":"https://avatars.githubusercontent.com/u/5649639?v=3","gravatar_id":"","url":"https://api.github.com/users/sharadagarwal","html_url":"https://github.com/sharadagarwal","followers_url":"https://api.github.com/users/sharadagarwal/followers","following_url":"https://api.github.com/users/sharadagarwal/following{/other_user}","gists_url":"https://api.github.com/users/sharadagarwal/gists{/gist_id}","starred_url":"https://api.github.com/users/sharadagarwal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharadagarwal/subscriptions","organizations_url":"https://api.github.com/users/sharadagarwal/orgs","repos_url":"https://api.github.com/users/sharadagarwal/repos","events_url":"https://api.github.com/users/sharadagarwal/events{/privacy}","received_events_url":"https://api.github.com/users/sharadagarwal/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T21:46:06Z","updated_at":"2016-01-11T21:46:06Z","body":"I've run into the same problem. I'd like a solution to this."}}