Skip to content

Commit

Permalink
Populate memberName as contextParams value (#1365)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr authored Aug 12, 2024
1 parent 7d4691c commit fa63800
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,11 @@ private void generateEndpointParameterInstructionProvider() {
});

Shape operationInput = model.getShape(operation.getInputShape()).get();
parameterFinder.getContextParams(operationInput).forEach((name, type) -> {
parameterFinder.getContextParams(operationInput).forEach((name, memberName) -> {
if (!paramNames.contains(name)) {
writer.write(
"$L: { type: \"contextParams\", name: \"$L\" },",
name, name);
name, memberName);
}
paramNames.add(name);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public Map<String, String> getContextParams(Shape operationInput) {
String name = contextParamTrait.getName();
map.put(
name,
"unknown"
member.getMemberName()
);
}
});
Expand Down

0 comments on commit fa63800

Please sign in to comment.