The Specification Sandwich

An earlier post, Modern API Development with TypeSpec and OpenAPI , covered generating a typed HTTP boundary from a TypeSpec schema: OpenAPI in the middle, oapi-codegen on the Go backend, and a typed client on the frontend. That post stopped at the handler. The handlers had generated request and response types, but the other side of them was still hand-rolled. In the example, the search model came from a models package that someone had to write and keep aligned with the database by hand.

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论