A Twirp RPC Swagger/OpenAPI 2.0 generator
go get github.com/go-bridget/twirp-swagger-gen
go run github.com/go-bridget/twirp-swagger-gen \
-in example/example.proto \
-out example/example.swagger.json \
-host test.example.com
The project elliots/protoc-gen-twirp_swagger is defunct due to upstream changes to grpc-ecosystem dependencies.
This project is a rewrite, that relies on both the official OpenAPI structures, and a generic .proto file parser. The output should be line compatible - my goal was just to replace the generator with a working one without still being exposed to breaking changes from the gRPC ecosystem packages.
The generated output is suitable for Swagger-UI.