John Reilly
Read post

Keeping front end and back end in sync with NSwag generated clients

Generate TypeScript clients from OpenAPI specs using NSwag to maintain type safety between polyglot front end and back end systems. Create integration tests that compare generated client code against committed versions to catch API contract changes during CI. When back end changes affect the OpenAPI spec, tests fail and prompt developers to regenerate clients, while TypeScript compilation catches breaking changes in front end code.

    #typescript#c##openapi
Oct 12, 2025•5m read time•From johnnyreilly.com
Post cover image
Table of contents
The scenario ​The integration test ​Finishing up ​
4.1K Impressions
John Reilly's image
John Reilly

Johnny Reilly is a software engineer, blogger, and technology enthusiast known for his insights into...

23 Followers

•

278 Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard