We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling resolve() on a service method properly set resolvedRequestType but resolvedResponseType is always null.
resolve()
resolvedRequestType
resolvedResponseType
.proto :
syntax = "proto3"; package example1; message MyRequest { string foo = 1; } message MyResponse { string bar = 1; } service MyTestService { rpc getTest(MyRequest) returns (MyResponse); }
.js :
protobuf .load(proto) .then(root => { const service = root.lookup('example1.MyTestService'); for (let name in service.methods) { const method = service.methods[name]; method.resolve(); console.log(method.resolvedRequestType instanceof protobuf.Type); console.log(method.resolvedResponseType instanceof protobuf.Type); } });
output :
true false
The text was updated successfully, but these errors were encountered:
96dd8f1
Merge pull request #498 from subk/master
ae6f474
set resolvedResponseType on resolve(), fixes #497
No branches or pull requests
Calling
resolve()
on a service method properly setresolvedRequestType
butresolvedResponseType
is always null..proto :
.js :
output :
The text was updated successfully, but these errors were encountered: