go-proto-validators icon indicating copy to clipboard operation
go-proto-validators copied to clipboard

is_in_enum combined with int_gt doesn't work

Open SavostinVladimir opened this issue 3 years ago • 0 comments

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

SavostinVladimir avatar Mar 29 '21 09:03 SavostinVladimir