You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example foo.myEnumField in package.MyEnum.values()
In the validation rules, the type of the enum cannot be given statically in the program, so it would also need to work on the type foo.myEnumField in enum_values(type(foo.MyEnumField))
Alternatives considered
A custom helper function in every CEL language
The text was updated successfully, but these errors were encountered:
Change
I would like to be able to test a value against the list of defined enum values for a given enum type.
I am trying to replicate the feature, as seen in https://github.com/bufbuild/protoc-gen-validate/blob/main/validate/validate.proto#L702
Example
foo.myEnumField in package.MyEnum.values()
In the validation rules, the type of the enum cannot be given statically in the program, so it would also need to work on the type
foo.myEnumField in enum_values(type(foo.MyEnumField))
Alternatives considered
A custom helper function in every CEL language
The text was updated successfully, but these errors were encountered: