Skip to content

Commit 08ce173

Browse files
committed
Revert "Fix issue in parameter bindings for operationContextParams: use value instead of path."
This reverts commit fd5cb37.
1 parent fd5cb37 commit 08ce173

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/endpoint_parameter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def operation_context_param_value(operation, param_name)
174174

175175
return nil unless binding
176176

177-
"JMESPath.search(\"#{Underscore.underscore_jmespath(binding['value'])}\", context.params)"
177+
"JMESPath.search(\"#{Underscore.underscore_jmespath(binding['path'])}\", context.params)"
178178
end
179179

180180
def static_context_param(operation, param_name)

build_tools/aws-sdk-code-generator/spec/fixtures/interfaces/endpoints_string_array/api.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"input": { "shape": "ListOfObjectsOperationRequest" },
4242
"operationContextParams": {
4343
"stringArrayParam": {
44-
"value": "nested.listOfObjects[*].key"
44+
"path": "nested.listOfObjects[*].key"
4545
}
4646
},
4747
"http": {
@@ -53,7 +53,7 @@
5353
"input": { "shape": "MapOperationRequest" },
5454
"operationContextParams": {
5555
"stringArrayParam": {
56-
"value": "keys(map)"
56+
"path": "keys(map)"
5757
}
5858
},
5959
"http": {

0 commit comments

Comments
 (0)