jovotech / jovo-framework

🔈 The React for Voice and Chat: Build Apps for Alexa, Messenger, Instagram, the Web, and more
https://www.jovo.tech
Apache License 2.0
1.68k stars 309 forks source link

Cannot fetch value of capitalized letters #44

Closed iag closed 6 years ago

iag commented 6 years ago

When a parameter is defined in Dialogflow in all capitals, Jovo does not seem to be able to get the value of that parameter. If debug logging is enabled, you can see the parameter and the value are passed, but when trying to call the parameter from within the functionIntent': function(VARIABLE) or when using the getInputs() function e.g. let inputs = app.getInputs(VARIABLE);, VARIABLE returns "undefined"

jankoenig commented 6 years ago

Thank you! We're using camelCase for entity names as parameters (e.g. first-name can be accessed by firstName), but didn't take into account all caps variable names. Will think about how to make this more clear in the error handling

jankoenig commented 6 years ago

Added a little more info here: https://github.com/jovotech/jovo-framework-nodejs/blob/master/docs/03_app-logic/02_data/README.md#input-as-parameter