Is automatic validation of Protobuf messages in place? #42802
Unanswered
preslavrachev
asked this question in
Q&A
Replies: 1 comment
-
No, there is no automatic validation. We follow the same default behavior of gRPC Java. If that's not the case anymore, please open an issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Take the following Protobufs spec:
I also have a Grpc service that is suposed to accept requests of that type. A quick demo allowed me to send and empty message to that service, and it still hit the endpoint. I was expecting an error, because the
name
field is not marked asoptional
, but that wasn't the case. The response from the server was a clear 200 OK.What is the way to validate incoming Protobuf messages in Quarkus, other than field-by-field checking?
Beta Was this translation helpful? Give feedback.
All reactions