News for hackers. Stuff that matters.
Re:Write OpenAPI with TypeSpec by k8svet on Wednesday March 27, 2024 @02:55PM (#39843178)
Cool, it certainly feels like there's some unrealized better way to describe APIs -- but the part that's more interesting for me is the codegen story? Or some way to validate the service I implemented is actually conformant?

I guess for now it translates to OpenAPI, but the footnote implies that TypeSpec-driven codegen could be better. Maybe more is coming soon?

Re:Write OpenAPI with TypeSpec by Petermarcu on Wednesday March 27, 2024 @03:04PM (#39843271)
The author has an example repo demonstrating some of the early support for codegen. https://github.com/bterlson/typespec-todo

Server side codegen is also one the horizon and is a key way to keep the spec and service in sync. So many possibilities here!