{"action":"created","issue":{"url":"https://api.github.com/repos/RicoSuter/NSwag/issues/2575","repository_url":"https://api.github.com/repos/RicoSuter/NSwag","labels_url":"https://api.github.com/repos/RicoSuter/NSwag/issues/2575/labels{/name}","comments_url":"https://api.github.com/repos/RicoSuter/NSwag/issues/2575/comments","events_url":"https://api.github.com/repos/RicoSuter/NSwag/issues/2575/events","html_url":"https://github.com/RicoSuter/NSwag/issues/2575","id":535559750,"node_id":"MDU6SXNzdWU1MzU1NTk3NTA=","number":2575,"title":"Honoring RouteTokenTransformerConvention with the CLI","user":{"login":"arnederuwe","id":3369747,"node_id":"MDQ6VXNlcjMzNjk3NDc=","avatar_url":"https://avatars0.githubusercontent.com/u/3369747?v=4","gravatar_id":"","url":"https://api.github.com/users/arnederuwe","html_url":"https://github.com/arnederuwe","followers_url":"https://api.github.com/users/arnederuwe/followers","following_url":"https://api.github.com/users/arnederuwe/following{/other_user}","gists_url":"https://api.github.com/users/arnederuwe/gists{/gist_id}","starred_url":"https://api.github.com/users/arnederuwe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arnederuwe/subscriptions","organizations_url":"https://api.github.com/users/arnederuwe/orgs","repos_url":"https://api.github.com/users/arnederuwe/repos","events_url":"https://api.github.com/users/arnederuwe/events{/privacy}","received_events_url":"https://api.github.com/users/arnederuwe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-12-10T08:01:06Z","updated_at":"2019-12-16T12:23:40Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nWe implemented a KebabCaseParameterTransformer class to transform our ```WebApiMethods``` to ```web-api-methods``` to honour both our C# and url naming conventions. We register it like this:\r\n```\r\nservices.AddControllers(opts => {  \r\n\r\n\r\n    opts.Conventions.Add(new RouteTokenTransformerConvention(new KebabCaseParameterTransformer())); \r\n\r\n}); \r\n```\r\n\r\nThis works fine with ```services.AddOpenApiDocument();``` the url convention is correctly reflected in the generated swagger file.\r\nWe use the CLI to generate a TypeScript client as a part of our build process though, and there the ```KebabCaseParameterTransformer```, isn't executed, which makes perfect sense ofc. Resulting in a broken TypeScript client because all the url's are wrong.\r\n\r\nIs there another way to customize this sort of thing when generating a swagger file with the CLI? Perhaps a custom DLL that can be invoked with some methods that implement certain interfaces?"},"comment":{"url":"https://api.github.com/repos/RicoSuter/NSwag/issues/comments/566039077","html_url":"https://github.com/RicoSuter/NSwag/issues/2575#issuecomment-566039077","issue_url":"https://api.github.com/repos/RicoSuter/NSwag/issues/2575","id":566039077,"node_id":"MDEyOklzc3VlQ29tbWVudDU2NjAzOTA3Nw==","user":{"login":"arnederuwe","id":3369747,"node_id":"MDQ6VXNlcjMzNjk3NDc=","avatar_url":"https://avatars0.githubusercontent.com/u/3369747?v=4","gravatar_id":"","url":"https://api.github.com/users/arnederuwe","html_url":"https://github.com/arnederuwe","followers_url":"https://api.github.com/users/arnederuwe/followers","following_url":"https://api.github.com/users/arnederuwe/following{/other_user}","gists_url":"https://api.github.com/users/arnederuwe/gists{/gist_id}","starred_url":"https://api.github.com/users/arnederuwe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arnederuwe/subscriptions","organizations_url":"https://api.github.com/users/arnederuwe/orgs","repos_url":"https://api.github.com/users/arnederuwe/repos","events_url":"https://api.github.com/users/arnederuwe/events{/privacy}","received_events_url":"https://api.github.com/users/arnederuwe/received_events","type":"User","site_admin":false},"created_at":"2019-12-16T12:23:39Z","updated_at":"2019-12-16T12:23:39Z","author_association":"NONE","body":"We generate based on the api's DLL (we reference the assembly in the assemblyPaths config variable)\r\nI don't think it's possible to generate based on the api explorer, as we are doing the generation process in our build steps (in azure pipelines for example)"}}
{"actor":{"display_login":"arnederuwe"}}