Skip to content

Commit

Permalink
chore: put both key and value in quotes
Browse files Browse the repository at this point in the history
Co-authored-by: George Fu <kuhe@users.noreply.github.com>
  • Loading branch information
trivikr and kuhe authored Dec 16, 2024
1 parent 0b6e181 commit 11f9e70
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,9 @@ static List<String> getFunctionParametersList(Map<String, Object> paramsMap) {
throw new CodegenException("Plugin function parameters map must be Map<String, String>");
}
List<String> 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(", "))));
Expand Down

0 comments on commit 11f9e70

Please sign in to comment.