logoalt Hacker News

WickyNilliamslast Sunday at 11:50 PM3 repliesview on HN

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


Replies

makeitdoublelast Monday at 3:14 AM

I see your point, yet writing openapi specs by hand is pretty common.

There is the part where dealing with another tool isn't much worth it most of the time, and the other side where we're already reading/writing screens of yaml or yaml like docs all the time.

Taking time to properly think about and define an entry point is reasonable enough.

0x696C6961last Monday at 12:00 AM

Being verbose doesn't make it difficult.

show 1 reply
btreecatlast Monday at 12:50 PM

The standard pattern in go and some scala libs, is to define the spec and generate the code.

I think you're over fitting your own experiences.