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

Implement the error customization approach described in https://github.com/envoyproxy/protoc-gen-validate/issues/74#issuecomment-678590090. Extract message keys into a message store that can be overridden via a config file passed to protoc-gen-validate at generation time. This...

Enhancement

Closes #548 Don't know if this is supposed to have tests or not. Not really familiar with Bazel, so would need some pointers as to where to proceed on that.

现在提示全部是英文,而且过于术语话,能不能支持翻译或者自定义提示的

`enum Order { // ascending order ASC = 0; // descending order DESC = 1; }` `message PagingRequest { ​ map orderBy = 4 [(validate.rules).map = {ignore_empty: true, keys: {string:...

Bug

My intent: I want to allow -1 and all positive numbers. I also don't want to allow 0 ``` syntax = "proto3"; package test; option go_package = "test"; import "validate.proto";...

According to https://developers.google.com/protocol-buffers/docs/reference/java-generated\#invocation, OuterClass suffix should be appended not only top-level but also nested enums and messages. Signed-off-by: leafs99

Protoc-gen-validate has no active maintainers. If you would like to take up the mantle, contact @mattklein123 here, or on #protoc-gen-validate channel in the [Envoy proxy slack](https://github.com/envoyproxy/envoy#contact).

Is it possible to specify a custom message for validation failures? For example, if a min_length validation fails, I would like to return a reason that doesn't reference 'runes'. Or...

Enhancement
Help Wanted
Good First Issue

Hello, Is there a way to export gen validation code into a json schema (not open api spec) Essentially I need fields and constraints on those fields Thanks

In PGV 0.6.7, I noticed messages that have `optional` or `oneof` keyword with `.string = {in: []}` generates non-functioning map in code. For instance, ```protobuf optional string example = 1...

Bug