This repo is forked from the repo gRPC-Gateway, and most of the code has been removed, only the parts related to the protoc plugin are kept.
Plugins list:
- protoc-gen-openapi3 a plugin for generating OAS3 document with the .proto file.
$ go get -u github.com/dspo/grpc-plugins/protoc-gen-openapi
See more: gRPC-Gateway
-
Generate Openapi3 definitions using
protoc-gen-openapi3
With
protoc
(just the Openapi3 file):protoc -I . --openapi3_out ./gen/openapi3 \ --openapi3_opt=output_format=yaml \ your/service/v1/your_service.proto