go install github.com/a27kash/protoc-gen-openapi
protoc --openapi_out=. --openapi_opt=paths=source_relative example/example.proto