You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/endpointsV2/RuleSetParameterFinder.java
+69-33Lines changed: 69 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -277,39 +277,7 @@ public Map<String, String> getOperationContextParamValues(OperationShape operati
277
277
Stringseparator = "?.";
278
278
Stringvalue = "input";
279
279
Stringpath = definition.getPath();
280
-
281
-
// Split JMESPath expression string on separator and add JavaScript equivalent.
282
-
for (Stringpart : path.split("[" + separator + "]")) {
283
-
if (value.endsWith(")")) {
284
-
// The value is an object, which needs to run on map.
285
-
value += ".map((obj: any) => obj";
286
-
}
287
-
288
-
// Process keys https://jmespath.org/specification.html#keys
289
-
if (part.startsWith("keys(")) {
290
-
// Get provided object for which keys are to be extracted.
Copy file name to clipboardExpand all lines: smithy-typescript-codegen/src/test/java/software/amazon/smithy/typescript/codegen/CommandGeneratorTest.java
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,7 @@ public void writesOperationContextParamValues() {
Copy file name to clipboardExpand all lines: smithy-typescript-codegen/src/test/resources/software/amazon/smithy/typescript/codegen/endpointsV2/endpoints-operation-context-params.smithy
0 commit comments