grpc-ecosystem/grpc-gateway
GitHub で見るprotoc-gen-swagger: support maps in query parameters
Open
#984 opened on 2019年8月6日
bughelp wantedopenapi
説明
Hi guys, having following definition:
message Test {
map<string, string> filters = 1;
}
service TestService {
rpc TestRpc(Test) returns (Test) {
option (google.api.http) = {
get: "/test"
};
}
}
Which goes through swagger generator and ends up without the map being mentioend as parameters in request:
"/test": {
"get": {
"operationId": "TestRpc",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/offersTest"
}
}
},
"tags": [
"TestService"
]
}
}
I thought that I can add map params to the query... but I dont think so now and I cant tell if it's a bug... KR Jirka