-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix repeated field resolution in CEL for buf lint protovalidate rule (#…
…3162) This fixes #3161. `buf lint` for protovalidate should work correctly for both ``` repeated int32 ints = 1 [(buf.validate.field).repeated.items.cel = { id: "..." message: "..." expression: "this > 2" }]; ``` and ``` repeated int32 ints = 1 [(buf.validate.field).cel = { id: "..." message: "..." expression: "size(this) > 2" }]; ``` This PR fixes the bug in second case where `buf lint` thought `this` is an `int32`, while it should be a _list_ of `int32`.
- Loading branch information
1 parent
2f39a05
commit b13657b
Showing
4 changed files
with
66 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters