Skip to content

Commit a0ec269

Browse files
committed
Populate Operation Context Params in Endpoint Instruction Provider
1 parent e18086e commit a0ec269

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/CommandGenerator.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,12 @@ private void generateEndpointParameterInstructionProvider() {
299299
}
300300
paramNames.add(name);
301301
});
302+
303+
parameterFinder.getOperationContextParamValues(operationInput).forEach((name, jmesPathForInputinJs) -> {
304+
writer.write(
305+
"$L: { type: \"operationContextParams\", name: $L },",
306+
name, jmesPathForInputinJs);
307+
});
302308
}
303309
writer.write("})")
304310
.dedent();

0 commit comments

Comments
 (0)