Hacker News new | ask | show | jobs
by emilecantin 1733 days ago
Not the user you were asking, but the way we do it is that the OpenAPI/Swagger spec is auto-generated from server-side code (a C# .NET app with the ABP framework) during the CI build, and that is then used to auto-generate an API client (via swagger-typescript-api) which is what the frontend app uses.

When the backend team makes some changes, they notify the front-end team which then runs the auto-generation script, fixes the typescript errors (if there were breaking changes), and that's it. Pretty nice setup, IMO.

1 comments

Nice!

Why not re-run the auto-generation script automatically?

We use these types all over the app, manual intervention is very often needed.