Skip to content

get_slot_value_v2 returns 'None' for slot_value #27

Open
@rubenturcios

Description

@rubenturcios

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions