gnostic icon indicating copy to clipboard operation
gnostic copied to clipboard

additional_bindings not generate multiple paths

Open juchaosong opened this issue 3 years ago • 2 comments

We use additional_bindings to defice multiple URI bindings referring to HTTP and gRPC Transcoding. But it seems not generate multiple paths in openapi documentations.

I fork the repo, add commit https://github.com/juchaosong/gnostic/commit/5752cb1b52c4cfcb50bc4d6bc012ac7b681e6f75 using additional_bindings. Use the following cmd to generate openapi.yaml:

cd cmd/protoc-gen-openapi
protoc -I examples/ --openapi_out=. examples/google/example/library/v1/library.proto

But only POST /v1/shelves/{shelf}/books generated. Thanks for your respondings.

juchaosong avatar Apr 21 '22 04:04 juchaosong

Thanks, agreed, we should add support for this.

timburks avatar Apr 26 '22 21:04 timburks

Following as I am also interested in this feature. If someone can point me in the right direction I might find a little time to help with it.

teone avatar May 06 '22 21:05 teone