Replies: 1 comment
-
@cgat A bit late here, but I use Tygo, and it's quite helpful: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is a bit of a shot in the dark, but I'm wondering if there is a way to generate typescript types for the models used in an echo REST API?
Background: I'm working on a react native project which will hook into an echo based API. Ideally, I would like the backend types for the entities/models returned from to be the frontend to be in sync.
I've used this library in the past to generate types and an HTTP client from a swagger.json file. I did find echo-swagger, which could help in this regard, however it appears that all controllers, models, etc need to be annotated to generate the docs, and thus the swagger definition.
Likely wishful thinking, but I'm hoping something might exist that could do something similar without explicitly annotating the code, perhaps through the means of language reflection. I'm not a go developer, so perhaps this isn't even possible.
Any other suggestions are welcome.
Thanks for your time and energy.
Beta Was this translation helpful? Give feedback.
All reactions