logoalt Hacker News

0x696C6961last Sunday at 11:34 PM2 repliesview on HN

I write all of my openapi specs by hand. It's not hard.


Replies

WickyNilliamslast Sunday at 11:50 PM

I imagine you are very much in the minority. A simple hello world is like a screen full of yaml. The equivalent in graphql (or typespec which I always wanted to try as an authoring format for openapi https://typespec.io/) would be a few lines

show 2 replies
aitchnyulast Monday at 5:17 AM

Do you validate responses from client-side and server-side(Fastapi does this and prevents invalid responses from being sent) from spec?