|
|
|
|
|
by mayank
2051 days ago
|
|
> Does OpenAPI generate code for you? An OpenAPI spec is the equivalent of your .proto files. You need codegen to go from your .proto files to native classes, and you need codegen to go from your OpenAPI spec to native. > Protobuf and Cap'n Proto feature dedicated schema languages that feel like a programming language. It looks like OpenAPI has you writing schemas themselves in JSON or YAML. Ick. Counterpoint: I can take an OpenAPI spec and parse/process/render/codegen it in every single language without a custom parser library. |
|
And Protobuf has generators for more languages than OpenAPI/Swagger.