Skip to content

Commit 5f17ac0

Browse files
committed
Revert "Snake case param paths (roll to CDK stack)"
This reverts commit 8ac9f9a.
1 parent 8ac9f9a commit 5f17ac0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

core/src/main/java/com/compassion/commons/config/CredentialConfig.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class ConfigWithApiKey extends YAMLConfig implements CredentialConfig {
4040

4141
@Override
4242
public void forEachCredentialPath(Consumer<String> withSecretPath) {
43-
withSecretPath.accept("api_key");
43+
withSecretPath.accept("apiKey");
4444
}
4545

4646
public interface Mixin {
@@ -89,8 +89,8 @@ public class ConfigWithToken extends YAMLConfig implements CredentialConfig {
8989

9090
@Override
9191
public void forEachCredentialPath(Consumer<String> withSecretPath) {
92-
withSecretPath.accept("private_key");
93-
withSecretPath.accept("public_key");
92+
withSecretPath.accept("privateKey");
93+
withSecretPath.accept("publicKey");
9494
withSecretPath.accept("signature");
9595
}
9696

@@ -113,8 +113,8 @@ public class ConfigWithUserPasswordToken extends ConfigWithUserPassword {
113113
@Override
114114
public void forEachCredentialPath(Consumer<String> withSecretPath) {
115115
super.forEachCredentialPath(withSecretPath);
116-
withSecretPath.accept("private_key");
117-
withSecretPath.accept("public_key");
116+
withSecretPath.accept("privateKey");
117+
withSecretPath.accept("publicKey");
118118
}
119119

120120
public interface Mixin extends ConfigWithUserPassword.Mixin, ConfigWithToken.Mixin {
@@ -130,8 +130,8 @@ public class ConfigWithOAuth extends YAMLConfig implements CredentialConfig {
130130

131131
@Override
132132
public void forEachCredentialPath(Consumer<String> withSecretPath) {
133-
withSecretPath.accept("client_secret");
134-
withSecretPath.accept("client_id");
133+
withSecretPath.accept("clientSecret");
134+
withSecretPath.accept("clientId");
135135
}
136136

137137
public interface Mixin {

0 commit comments

Comments
 (0)