-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support JMESPath flatten in OperationContextParams #1537
Conversation
121df98
to
b4efe8e
Compare
value = value + separator + key.substring(0, key.length() - 3) + ".flat()"; | ||
} else { | ||
// key is on object | ||
value = value + separator + key + ").flat()"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spec question i believe: will there always be an opening parenthesis? since we are doing a concatenation with ").flat()"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. When the key
is on object, there's already a map function on it which needs to be closed before flatten can be called.
Issue #, if available:
Description of changes:
Support JMESPath flatten in OperationContextParams
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.