Commit 5bfb1b8
authored
fix(sidekick): ignore API version strings when building heuristic vocabulary (#4337)
When `BuildHeuristicVocabulary` dynamically learns collection names from
method paths, it parses standard paths and assumes the string literal
preceding a variable is a collection name. However, for APIs with flat
paths like `/dns/v1/{resource}:setIamPolicy`, it incorrectly identified
the API version v1 as a collection name since it immediately precedes a
variable.
This adds an explicit exclusion string check to aggressively filter out
known API version prefixes (e.g. v1, v2, v1beta1, v1p1beta1).
Fixes #43361 parent 839ce70 commit 5bfb1b8
2 files changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
111 | 115 | | |
112 | 116 | | |
113 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
217 | 216 | | |
218 | 217 | | |
219 | 218 | | |
| |||
0 commit comments