we are using the nswag tolchain (
https://github.com/RicoSuter/NSwag) for generating c# and typescript clients based on openapi specs generated by swashbuckle. you can tweak some details using config file too.
it works quite well and even has integration in msbuild to avoid manual cli steps.