Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix lint for repeated protovalidate CEL expression (#2824)
This PR fixes linting for repeated fields with CEL expressions. Adds a new test case for lists (and maps) to ensure a valid expression passes. Small fix to set the type 'this' to the list element type. Before: ``` testdata/protovalidate_rules/cel_field.proto:126:9:(buf.validate.field).repeated.items.cel.expression on field "allow_cidr" fails to compile: found no matching overload for 'isIpPrefix' applied to 'list(string).(int, bool)' | this.isIpPrefix(4, true) | ...............^ ```
- Loading branch information