-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix buf lint not catching non repeated rules defined on repeated fiel…
…ds of matching type (#2647) This PR fixes the bug where `buf lint` (PROTOVALIDATE) does not catch a non repeated rule incorrectly defined on a repeated field of matching type. For example, ``` repeated string foo = 1 [(buf.validate.field).string.min_len = 10]; ``` wasn't caught. Also updates `bufanalysistesting.AssertFileAnnotationsEqual` for more descriptive error messages.
- Loading branch information
1 parent
4ffb9f4
commit 44af737
Showing
5 changed files
with
28 additions
and
15 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
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