diff --git a/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/CodegenUtils.java b/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/CodegenUtils.java index df53e49fada..df76791c97f 100644 --- a/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/CodegenUtils.java +++ b/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/CodegenUtils.java @@ -312,7 +312,9 @@ static List getFunctionParametersList(Map paramsMap) { throw new CodegenException("Plugin function parameters map must be Map"); } List valueStringList = valueMap.entrySet().stream() - .map(entry -> String.format("%s: \"%s\"", entry.getKey(), entry.getValue())) + .map(entry -> String.format(""" + "%s": "%s" + """, entry.getKey(), entry.getValue())) .collect(Collectors.toList()); functionParametersList.add(String.format("%s: {%s}", key, valueStringList.stream().collect(Collectors.joining(", "))));