Closed
Description
This is same issue with #664 but the current version of grpc-gateway (it might be v1.6.3 or later) has this issue again.
Steps you follow to reproduce the error:
- Create
a.proto
andb.proto
by following Merging swagger specs fails to use rpc comments #664 (comment) instruction - Generate the swagger spec without merging:
protoc -I=. \
-I=$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway \
-I=$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
--swagger_out=logtostderr=true:. \
a.proto b.proto
- Generate the swagger spec with merging:
protoc -I=. \
-I=$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway \
-I=$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
--swagger_out=logtostderr=true,allow_merge=true:. \
a.proto b.proto
What did you expect to happen instead:
b.swagger.json has valid summary and description for "ListBars" operation but apidocs.swagger.json doesn't.
What's your theory on why it isn't working:
I've confirmed v1.6.2 generates a valid merged swagger spec. Changes of v1.6.3 might break this feature: v1.6.2...v1.6.3
Oh, I've tried revert 8140d98 and I could get the expected behavior.
Metadata
Metadata
Assignees
Labels
No labels