-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Use bufbuild/protoc-gen-validate to add Protobuf Message validation annotations and auto-generate Validate methods #11882
Comments
I've looked at this before and I like the idea. I just don't think this particular tools helps us much - it mostly has validations we don't need and doesn't have the ones we do. I propose we do something similar but design it for our use cases. |
Closing this, we have looked into it as Aaron mentioned. If we come back to it we can open a new issue |
Now that this tool is maintained by buf and moved to https://github.com/bufbuild/protoc-gen-validate it seems to have evolved a bit and has many more validations which may be useful to use. Thinking we should reopen and consider, especially in light of #11275. |
Hey @aaronc, figured I'd drop here and mention we're working on a v2 version for Protobuf validation, it'll be a runtime library called You can read more about it here: Announcing protoc-gen-validate v1.0 and our plans for v2.0 Having said that, we'll continue to maintain protoc-gen-validate v1 in its current form. We're happy to help or bounce ideas if you like. |
we opted to have validation live in the message server, there isnt a need for this anymore |
Internally at Orijtech Inc, our very own @kirbyquerby noted that we should be using https://github.com/envoyproxy/protoc-gen-validate to annotate protobuf Message fields for validation, and then have .Validate methods instead of manually writing validators for every struct in code.
For Admin Use
The text was updated successfully, but these errors were encountered: