elixir-grpc / grpc-reflection

elixir graph reflection support
Apache License 2.0
9 stars 6 forks source link

lookup syntax value and populate with proto2 or proto3 #10

Closed mjheilmann closed 8 months ago

mjheilmann commented 9 months ago

We have been ignoring the syntax field on the reflected protos, allowing it to default to proto2.

This PR adds a lookup function to get the syntax of a message type, or for a service the syntax of the first request message, and uses that to populate the syntax.

This isn't 100%, and will not be able to resolve the syntax of a service that only has zero-arity functions.