bruno icon indicating copy to clipboard operation
bruno copied to clipboard

[Feature] Generating Type definitions for APIs to be used by the frontend Typescript app

Open nileshtrivedi opened this issue 1 year ago • 1 comments

I proposed to my team that we start using Bruno for collaborating on API specs. But there's a preference for using Swagger. One of the reasons is that with Swagger, the frontend devs get type definitions which they can directly import and rely on for ensuring type-safety when using the APIs.

  • https://openapi-generator.tech/
  • https://github.com/acacode/swagger-typescript-api

Can the same be enabled with the source of truth for API specs is in Bruno's markup language?

nileshtrivedi avatar Mar 22 '24 04:03 nileshtrivedi

Generate types for each language, which I think is a necessary feature

lizyChy0329 avatar May 22 '24 06:05 lizyChy0329

Another tool suggestion: https://github.com/glideapps/quicktype I believe Hoppscotch is using that, and the results are pretty good!

TimShilov avatar Sep 06 '24 18:09 TimShilov