alexa-apis-for-python icon indicating copy to clipboard operation
alexa-apis-for-python copied to clipboard

get_slot_value_v2 returns 'None' for slot_value

Open rubenturcios opened this issue 3 years ago • 0 comments

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Performance issue
[ ] Feature request (generic to all classes)
[ ] Documentation issue or request
[ ] Other... Please describe:

Returns incorrect value for attribute slotValue (slot_value).

Expected Behavior

get_slot_value_v2 should return the value of the slot, not None

Current Behavior

slotValue in attribute map for obj of type Slot does not resolve to anything in a response json file / envelope. Returns None for mapped attribute value slot_value. It does return the correct value in attribute value or when using get_slot_value (version 1)

Possible Solution

Fix slot object deserialization. 

Steps to Reproduce (for bugs)

Context

Found while working on intent handler logic for Alexa skill

Your Environment

  • ASK SDK Models for Python used: latest
  • ASK SDK for Python used: latest
  • Operating System and version: windows 10

Python version info

  • Python version used for development: 3.8.10

rubenturcios avatar May 19 '22 19:05 rubenturcios