You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently Swagger generator loses comment description if I reference any field of an RPC request object in path.
Say, RPC is defined as
service Summator {
rpc Sum(SumRequest) returns (SumResponse) {
option (google.api.http) = {
// uncomment get or post+body or use YAML annotation
//get: "/v1/example/sum/{a}/{b}"
post: "/v1/example/sum/{a}"
body: "b"
};
}
}
// SumRequest is a request for Summator service.
message SumRequest {
// A is the number we're adding to. Can't be zero for the sake of example.
int64 a = 1;
// B is the number we're adding.
NestedB b = 2;
}
Are you sure that you are still seeing this issue? If I understand your issue correctly, I was seeing the same issue, but it disappeared when I pulled the latest version of grpc-gateway.
Currently Swagger generator loses comment description if I reference any field of an RPC request object in path.
Say, RPC is defined as
Swagger generates a method as
Param
a
can (and should) have a comment, but it's not pulled.I'll try to fix it if no one gets to it sooner - it can be messy though since
PathParam
loses almost any info about its target field.The text was updated successfully, but these errors were encountered: