From d3e062dbe5c7ffcd1ee0f8b7e8f237a942882146 Mon Sep 17 00:00:00 2001 From: George Fu Date: Wed, 19 Oct 2022 03:03:28 +0000 Subject: [PATCH] fix(endpoint): do not modify context param names --- .../amazon/smithy/typescript/codegen/CommandGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/CommandGenerator.java b/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/CommandGenerator.java index d242ff7e52b..97aac632b5e 100644 --- a/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/CommandGenerator.java +++ b/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/CommandGenerator.java @@ -204,7 +204,7 @@ private void generateEndpointParameterInstructionProvider() { parameterFinder.getContextParams(operationInput).forEach((name, type) -> { writer.write( "$L: { type: \"contextParams\", name: \"$L\" },", - name, EndpointsParamNameMap.getLocalName(name) + name, name ); }); parameterFinder.getClientContextParams().forEach((name, type) -> {