News for hackers. Stuff that matters.
Re:Write OpenAPI with TypeSpec by hocuspocus on Wednesday March 27, 2024 @05:35PM (#39844871)
I would pick Smithy if I had to go spec-first.

I currently tolerate OpenAPI because I'm using a robust code-first approach (Tapir in Scala) on the server side, but I otherwise agree, the ecosystem seems brittle.

Re:Write OpenAPI with TypeSpec by Petermarcu on Wednesday March 27, 2024 @09:07PM (#39846645)
TypeSpec and Smithy live in a similar space here. You can generate OpenAPI specs from them, or you can generate assets directly from them. OpenAPI is one of the many possible outputs from TypeSpec.

This is an example the author created of TypeSpec being used to generate clients in many languages as well as the OpenAPI spec.

https://github.com/bterlson/typespec-todo