resonatecoop / api

The one Resonate API to rule them all

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generate typescript definitions for client with OpenAPI/swagger specs

dominictwlee opened this issue · comments

Any plans to generate typescript definitions with swagger/openAPI specs? I think this would be super handy and would speed up development for client implementations.

Could use something like https://github.com/drwpow/openapi-typescript

commented

I hadn't even considered that this would be possible but it would be great!

For what it's worth (and I posted this in the mattermost too) I'm standardizing a bunch of the API requests so that they consistently return the same info or info format, right now that's a bit all over the place. But it probably means some changes to the formats you're receiving, which I realize is frustrating. I was thinking it makes more sense to do this now before the API is live than to have to actually maintain proper versioning on the API afterwards.

Generating the typescript automatically would help with that massively I think. I'll look into it!

yeah cool no worries, not too much effort on my part!