4 ms·
Looks interesting My current way of achieving codegen sdk w openapi is using the readme/api sdk framework maker, if you have good specs it works pretty great.
by tough 4y ago
Looks interesting
My current way of achieving codegen sdk w openapi is using the readme/api sdk framework maker, if you have good specs it works pretty great.
Add tests to the sdk, and you're both testing your openapi implementation, docs, and sdk in one test
- digdugdirk 4y agoI searched for what you're describing here, and I don't believe I found the service you're describing - I'm not seeing how it could generate code. Would you mind expanding on what you're talking about here? It sounds intriguing, I'm just not following.
- tough 4y agohttps://github.com/readmeio/api https://github.com/readmeio/api In my case I had a backend with annotatted swagger docs, which generated the OpenAPI spec from it using https://www.npmjs.com/package/next-swagger-doc https://www.npmjs.com/package/next-swagger-doc but basically it will take any openapi spec url, and generate an SDK for it. So you'll get your named routes for free as sdk a la mySDK.allUsers() or mySDK.findUser(id) or whatever your openapi spec exposes