logoalt Hacker News

esafaklast Monday at 6:15 PM3 repliesview on HN

Which parts of Openapi does it fix?


Replies

speak_onyesterday at 12:04 AM

Looking at the first example - it's far less verbose. Although, seems to be suspiciously minimal, so I can't even tell from a single .tsp route definition what response content type to expect (application/json is the default most likely).

show 1 reply
dcreyesterday at 12:25 AM

It’s actually human-readable, it has generics, it supports sum and product types in a much more natural way. There’s a lot more, that’s just off the top of my head.

hokkosyesterday at 6:32 AM

Open api is an exchange format, it quickly become to verbose and repetitive, it is only OK when auto generated and consumed by tooling.