You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/integration/AddHttpApiKeyAuthPlugin.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -151,7 +151,8 @@ public void writeAdditionalExports(
151
151
TypeScriptWriterwriter
152
152
) {
153
153
booleanisClientSdk = settings.generateClient();
154
-
if (isClientSdk) {
154
+
ServiceShapeservice = settings.getService(model);
155
+
if (isClientSdk && hasEffectiveHttpApiKeyAuthTrait(model, service)) {
155
156
writer.write("export * from \"./middleware/$1L\";", getMiddlewarePath());
0 commit comments