Replies: 1 comment 1 reply
-
Hi @stephenh. wdyt on this matter? Should this be upgraded to an issue? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
We are having an issue sometimes, where not all fields specified in our *.proto files are present when calling service methods. When it happens, we get a cryptic exception, which doesn't tell us which exact field is missing. This makes debugging extremely hard.
We would like to add some automatic validation.
For example, let's assume this sample:
Sometimes we get a situation where
SampleServiceClient.sampleMethod()
is called with the parameter, which doesn't have mandatory fieldrequest
. And because of it, an exception is thrown when we attempt to encode the request:Ideally, we are looking for the validation to happen before the line, where we encode the request:
Do you have any recommendations?
Beta Was this translation helpful? Give feedback.
All reactions