Skip to content

Commit 20b5ec1

Browse files
apasel422Luke Sneeringer
andauthored
fix: Fix typos in AIP-231's http_uri_suffix rule (#610)
Co-authored-by: Luke Sneeringer <[email protected]>
1 parent daf0669 commit 20b5ec1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rules/aip0231/http_uri_suffix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var uriSuffix = &lint.MethodRule{
2929
for _, httpRule := range utils.GetHTTPRules(m) {
3030
if !batchGetURINameRegexp.MatchString(httpRule.URI) {
3131
return []lint.Problem{{
32-
Message: `Get methods URI should be end with ":batchGet".`,
32+
Message: `Batch Get method's URI should end with ":batchGet".`,
3333
Descriptor: m,
3434
}}
3535
}

rules/aip0231/http_uri_suffix_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func TestHttpUrl(t *testing.T) {
3232
problems testutils.Problems
3333
}{
3434
{"Valid", "/v1/{parent=publishers/*}/books:batchGet", "BatchGetBooks", nil},
35-
{"InvalidVarName", "/v1/{parent=publishers/*}/books", "BatchGetBooks", testutils.Problems{{Message: `Get methods URI should be end with ":batchGet".`}}},
35+
{"InvalidVarName", "/v1/{parent=publishers/*}/books", "BatchGetBooks", testutils.Problems{{Message: `Batch Get method's URI should end with ":batchGet".`}}},
3636
{"Irrelevant", "/v1/{book=publishers/*/books/*}", "AcquireBook", nil},
3737
}
3838

0 commit comments

Comments
 (0)