-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some general questions #224
Comments
Hi, @dpservis!
Your protos will have a dependency on those in protovalidate, and you will use the protovalidate-cc library to perform the validation on your messages.
Nothing in the protovalidate ecosystem is OS-specific. The same tooling you use to work with a C++ codebase on Windows is still applicable. I'd refer to the usage documentation in the protovalidate-cc repo for examples. If you encounter anything not working, or if there's anything that we can clarify in our documentation, please feel free to open an issue on the appropriate repository.
Protovalidate does not perform any code generation; all validators are built at runtime and cached for that message type. Our blog post on the kickoff of protovalidate as a replacement for protoc-gen-validate, goes into details why code generation is not worth it in this space. If the concern is performance, we have benchmark numbers for the Go implementation showing sub-100ns execution of validation rules against messages with an (amortized) zero allocations after the first time a message type is encountered. |
Hi,
I am trying to figure out the following:
The text was updated successfully, but these errors were encountered: