Re:gRPC vs. REST: Understand gRPC, OpenAPI and REST and When...
by foobarian on Thursday January 23, 2025 @12:04PM
(#42805733)
> In the OpenAPI world, the equivalent must be writing one's own OpenAPI spec generator
Close, it's writing custom client and server codegen that actually have working support for oneOf polymorphism and whatever other weird home-grown extensions there are.
In the OpenAPI world, the equivalent must be writing one's own OpenAPI spec generator that scans an annotated server codebase, probably bundled with a client codegen tool as well. I know I've written one (mine too was a proper abomination) and it sounds like so have a few others in this thread.