actions-on-google / actions-on-google-nodejs

Node.js client library for Actions on Google
https://actions-on-google.github.io/actions-on-google-nodejs
Apache License 2.0
900 stars 197 forks source link

conv.contexts.get is case sensitive #350

Open tomhalley opened 4 years ago

tomhalley commented 4 years ago

As the title suggests, a value of "my_context" passed to conv.contexts.get will match a context defined in DialogFlow as "MY_CONTEXT", but if I pass it "MY_CONTEXT", the getter returns undefined. DialogFlow context names aren't case sensitive, so this creates some confusion

Fleker commented 4 years ago

In JSON and Javascript, keys and variables are case-sensitive.