Skip to content

Cannot erase AWS Lex SessionAttributes #218

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

Closed
artempanko opened this issue Aug 1, 2019 · 2 comments
Closed

Cannot erase AWS Lex SessionAttributes #218

artempanko opened this issue Aug 1, 2019 · 2 comments
Labels

Comments

@artempanko
Copy link
Contributor

For erasing aws lex sessionAttributes I need to pass empty map according to aws lex docs (https://docs.aws.amazon.com/lex/latest/dg/context-mgmt.html)
But LexResponse uses json tag with omitempty option and aws lex won't clear sessionAttributes.
Code example: https://play.golang.org/p/Qpca-uHwGQL
I'm proposing to remove omitempty option in LexResponse struct.

@bmoffatt
Copy link
Collaborator

Makes sense to me, feel free to open a pull-request!

@artempanko
Copy link
Contributor Author

Hi, I've created, please review #225

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants