Skip to content

Commit 960f792

Browse files
committed
fixup! feat: support @httpApiKeyAuth trait
1 parent 2969bab commit 960f792

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/integration/AddHttpApiKeyAuthPlugin.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import java.util.function.BiConsumer;
2323
import java.util.function.Consumer;
2424
import software.amazon.smithy.codegen.core.Symbol;
25+
import software.amazon.smithy.codegen.core.SymbolDependency;
2526
import software.amazon.smithy.codegen.core.SymbolProvider;
2627
import software.amazon.smithy.model.Model;
2728
import software.amazon.smithy.model.knowledge.ServiceIndex;
@@ -129,6 +130,12 @@ public void writeAdditionalFiles(
129130
writerFactory.accept(
130131
Paths.get(CodegenUtils.SOURCE_FOLDER, "middleware", "HttpApiKeyAuth", "index.spec.ts").toString(),
131132
writer -> {
133+
writer.addDependency(SymbolDependency.builder()
134+
.dependencyType("devDependencies")
135+
.packageName("@types/jest")
136+
.version("latest")
137+
.build());
138+
132139
String source = IoUtils.readUtf8Resource(getClass(), "http-api-key-auth.spec.ts");
133140
writer.write("$L$L", noTouchNoticePrefix, "http-api-key-auth.spec.ts");
134141
writer.write("$L", source);

0 commit comments

Comments
 (0)