Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
I've had success with NSwag for generating both TypeScript and C# clients. Highly customisable - maybe too customisable with the config being quite complex - there's CLI & GUI tools to generate configs though.
https://github.com/RicoSuter/NSwag
We use the C# client generator in our public sector project and package the results up within Nuget, works a treat.
You can go to the Swagger Editor [1], download the default Pet Store schema as a JSON file, and upload it here to see an example in action.
We used a forked version of https://github.com/readmeio/oas to help dereference `$ref` statements, but other than that this is entirely hand-written: The Typescript `factory` AST API + `prettier` for formatting.
Related posts
- Code generation from Swagger specification file
- In Visual Studio 2022 Is there a way to generate a function from an OpenApi yaml file
- What tools I can use to define WebServices contract?
- This week I released v2.1 of my text-templating library Weave that now uses Source Generators by default.
- Generating an OpenAPI/Swagger spec from a Ruby on Rails API