3 ms·
I don’t know anything about XRPC and Lexicon, but claiming that OpenAPI is better than them because it’s more flexible, is not a great argument. OpenAPI is a
by WatchDog 3y ago
I don’t know anything about XRPC and Lexicon, but claiming that OpenAPI is better than them because it’s more flexible, is not a great argument.
OpenAPI is a very complex spec, and most of the tooling around it, only supports some subset of it.
Sure it’s complex for a reason, it’s design goals are to be able to document the wide array of ways that HTTP APIs can be built, but if you don’t need that complexity, it absolutely makes sense to use a simpler RPC spec.
- asimpletune 3y agoI don’t know anything about xrpc. Do you know why any of the numerous other rpc specs weren’t chosen? Thrift, cap’n proto, grpc, etc have already been in production for years now.
- Sytten 3y agoClaiming that OpenAPI or JSONSchema can generate good client or server code automatically is a bad joke if the author had bothered to try the current code generators that exist. They might work but the code they produce is really not great nor idiomatic to their language.