Skip to content

Commit 07f9f18

Browse files
authored
Ensure endpoints are generated even when auth is not present (#441)
1 parent 8424bd8 commit 07f9f18

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

codegen/core/src/main/java/software/amazon/smithy/python/codegen/DirectedPythonClientCodegen.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,10 @@ public void customizeBeforeShapeGeneration(CustomizeDirective<GenerationContext,
108108

109109
new ConfigGenerator(directive.settings(), directive.context()).run();
110110
var serviceIndex = ServiceIndex.of(directive.model());
111-
if (directive.context().applicationProtocol().isHttpProtocol()
112-
&& !serviceIndex.getAuthSchemes(directive.service()).isEmpty()) {
113-
new HttpAuthGenerator(directive.context(), directive.settings()).run();
111+
if (directive.context().applicationProtocol().isHttpProtocol()) {
112+
if (!serviceIndex.getAuthSchemes(directive.service()).isEmpty()) {
113+
new HttpAuthGenerator(directive.context(), directive.settings()).run();
114+
}
114115
new EndpointsGenerator(directive.context(), directive.settings()).run();
115116
}
116117
}

0 commit comments

Comments
 (0)