-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: camel case for multiple capital letters #1149
Conversation
Here is the summary of possible violations 😱 There is a possible violation for not having product prefix.
The end of the violation section. All the stuff below is FYI purposes only. Here is the summary of changes. You are about to add 1 region tag.
This comment is generated by snippet-bot.
|
@@ -240,7 +240,7 @@ export class NamingClient { | |||
// Iterate over each of the methods that the service provides | |||
// and create an API call method for each. | |||
const namingStubMethods = | |||
['paginatedMethod', 'paginatedMethodStream', 'paginatedMethodAsync', 'longRunning', 'checkLongRunningProgress', 'initialize', 'servicePath', 'apiEndpoint', 'port', 'scopes', 'getProjectId', 'getReservedWord']; | |||
['paginatedMethod', 'paginatedMethodStream', 'paginatedMethodAsync', 'longRunning', 'checkLongRunningProgress', 'initialize', 'servicePath', 'apiEndpoint', 'port', 'scopes', 'getProjectId', 'getReservedWord', 'createAbcdeSomething']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is the main change: if you scroll to the right, the last element of this list is createAbcdeSomething
. It would've been createABCDESomething
without the fix.
* fix: follow case convention #1149 in generated tests * fix: one more place
Fixes #1148, googleapis/nodejs-os-config#173.
protobuf.js
and@grpc/grpc-js
use somewhat different logic when camel-casing strings likeCreateOSPolicy
, where multiple capital letters form a word. In our current code, it will be camel-cased ascreateOSPolicy
, while these libraries expectcreateOsPolicy
.Implementing a special mode to use internally for this specific case. External interfaces of the generated libraries should not be affected in any way.