Skip to content

Commit 282725d

Browse files
committed
Fix for optional dependencies of SymbolDependencies.
1 parent 04c8e4a commit 282725d

File tree

5 files changed

+244
-210
lines changed

5 files changed

+244
-210
lines changed

codegen/aws/core/src/main/java/software/amazon/smithy/python/aws/codegen/AwsAuthIntegration.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@
44
*/
55
package software.amazon.smithy.python.aws.codegen;
66

7-
import java.util.Collections;
87
import java.util.List;
98
import software.amazon.smithy.aws.traits.auth.SigV4Trait;
109
import software.amazon.smithy.codegen.core.Symbol;
1110
import software.amazon.smithy.model.shapes.ShapeId;
12-
import software.amazon.smithy.model.traits.HttpApiKeyAuthTrait;
1311
import software.amazon.smithy.python.codegen.ApplicationProtocol;
1412
import software.amazon.smithy.python.codegen.CodegenUtils;
1513
import software.amazon.smithy.python.codegen.ConfigProperty;
@@ -67,8 +65,7 @@ public List<RuntimeClientPlugin> getClientPlugins(GenerationContext context) {
6765
.build())
6866
.addConfigProperty(regionConfig)
6967
.authScheme(new Sigv4AuthScheme())
70-
.build()
71-
);
68+
.build());
7269
}
7370

7471
@Override
@@ -135,11 +132,9 @@ public List<DerivedProperty> getAuthProperties() {
135132
.source(DerivedProperty.Source.CONFIG)
136133
.type(Symbol.builder().name("str").build())
137134
.sourcePropertyName("region")
138-
.build()
139-
);
135+
.build());
140136
}
141137

142-
143138
@Override
144139
public Symbol getAuthOptionGenerator(GenerationContext context) {
145140
var resolver = CodegenUtils.getHttpAuthSchemeResolverSymbol(context.settings());

0 commit comments

Comments
 (0)