Hey guys, I'm considering using 
https://github.com/grpc-ecosystem/grpc-gateway for generating a REST API 
for my gRPC server, and I was wondering whether it is possible to specify 
rules for how types are mapped?

For example, I see in the documentation 
https://github.com/googleapis/googleapis/blob/master/google/api/http.proto 
that we can specify body to map the request body to a field in the gRPC 
request parameters.

However, will this work properly if I have a string field in my HTTP 
request body that is defined as an int or some other type in the protobuf 
definition? I want to use string for all numbers in my REST API, in order 
to eliminate loss of precision or ambiguity. And if it will not work 
properly out of the box, is there a way for me to specify the conversion?

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/d3358cff-5b6b-46c0-b56b-69a50e60ee1en%40googlegroups.com.

Reply via email to