News for hackers. Stuff that matters.
Re:gRPC vs. REST: Understand gRPC, OpenAPI and REST and When... by XorNot on Thursday January 23, 2025 @01:58AM (#42801424)
The oapi-codegen tool the OP was put out (which I use) solves this by emitting an interface though. OpenAPI has the concept of operation names (which also have a standard pattern), so your generated code is simply implementing operation names. You can happily rewrite the entire spec and provided operation names are the same, everything will still map correctly - which solves the coupling problem.

There are no comments on this comment yet.