protoc-gen-validate icon indicating copy to clipboard operation
protoc-gen-validate copied to clipboard

Protocol Buffer Validation - Being replaced by github.com/bufbuild/protovalidate

Results 175 protoc-gen-validate issues
Sort by recently updated
recently updated
newest added

I have a string, and I want to validate that its either an email, OR in [string-a, string-b], is it possible?

According to documentation, the go version supports ValidateAll. Java assertion style validation is too limiting for most uses

PR Open

Add optional fields support for java and cpp. Based on #537.

C++
Java

[I've created a nix flake for this repo.](https://github.com/thegergo02/protoc-gen-validate-flake) The maintainers can decide if they want to write anything about it into the docs. (I created it as another project depends...

PR Open
feature request

This adds a new well known validation for strings which checks the input is a valid IP prefix in CIDR notation. Example ```protobuf message IPRoute { string prefix = 1...

Hello everyone, PGV is an awesome product but it lacks some key features such as cross-field validation. One way I've found to work around this is to write custom validation...

Created an example.proto ```➜ protoc-gen-validate git:(main) ✗ cat example.proto syntax = "proto3"; package examplepb; import "validate/validate.proto"; option go_package= "rbac_proto/"; message Person { uint64 id = 1 [(validate.rules).uint64.gt = 999]; string...

Bug

This is https://github.com/envoyproxy/protoc-gen-validate/pull/398 but with the latest changes merged. **DISCLAIMER: NOT TESTED MANUALLY**

I have fixed a bunch of compilation errors I found using a pretty large and diverse proto codebase: **1. Using system types as field name: float, double, enum, bool** Generated...