Skip to content

Commit

Permalink
Fix issue in parameter bindings for operationContextParams: use value…
Browse files Browse the repository at this point in the history
… instead of path.
  • Loading branch information
alextwoods committed Oct 21, 2024
1 parent 818534e commit fd5cb37
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 @@ -174,7 +174,7 @@ def operation_context_param_value(operation, param_name)

return nil unless binding

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

def static_context_param(operation, param_name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"input": { "shape": "ListOfObjectsOperationRequest" },
"operationContextParams": {
"stringArrayParam": {
"path": "nested.listOfObjects[*].key"
"value": "nested.listOfObjects[*].key"
}
},
"http": {
Expand All @@ -53,7 +53,7 @@
"input": { "shape": "MapOperationRequest" },
"operationContextParams": {
"stringArrayParam": {
"path": "keys(map)"
"value": "keys(map)"
}
},
"http": {
Expand Down

0 comments on commit fd5cb37

Please sign in to comment.