~/talk

Building an OpenAPI from Typescript

Talkat DevBreak 2021 · 2021-09-08..09-09· [typescript, api-design]
slides:none on file

A team moves from ~40 JavaScript microservice repos into a TypeScript monorepo and builds a small framework that composes micro handlers, traces file dependencies, and starts only affected services. It uses AJV + json-schema-to-ts for validated, typed inputs, a static analyzer from TypeScript AST to extract routes/params/responses, and emits an OpenAPI spec generated per-service. CI posts GitHub comments on breaking changes, generates docs and clients (saving thousands of lines), and integrates with Vercel for incremental deploys.

AI-written summary · about

  1. 0:00Introduction
  2. 1:57API Challenges
  3. 2:55OpenAPI Specification
  4. 5:32Pain Points
  5. 8:59Building the Ideal System
  6. 10:26Monorepo Adoption
  7. 13:38Minimalist Routing
  8. 17:12Tooling and Framework
  9. 21:40Validation and Types
  10. 25:03Generated Documentation
  11. 28:38CI/CD and Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.