mwitkow / go-proto-validators

Generate message validators from .proto annotations.
Apache License 2.0
1.08k stars 164 forks source link

is_in_enum combined with int_gt doesn't work #107

Open SavostinVladimir opened 3 years ago

SavostinVladimir commented 3 years ago

I try to use such a syntax, but it doesn't work

[(validator.field) = {int_gt:0, is_in_enum: true}]

It makes sense for example when you use 0 value for enum INVALID, and then want to validate that enum is greater than INVALID value