grpcurl icon indicating copy to clipboard operation
grpcurl copied to clipboard

new feature: use grpcurl as an offline tool to convert JSON into proto

Open irsl opened this issue 2 years ago • 1 comments

The tool then can be used like this:

$ ./grpcurl --import-path  /data/app-engine-experiments/2022/protos -proto remote_api.proto -d '{"service_name":"sdf","method":"method","request":"foo"}' -convert-message remote_api.Request | protoc --decode_raw
2: "sdf"
3: "method"
4: "foo"

irsl avatar May 10 '22 12:05 irsl

This seems kind of out of scope for grpcurl.

dragonsinth avatar Jun 02 '22 19:06 dragonsinth