Skip to content

Commit

Permalink
Add usage of DefaultSerializer for session attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilym authored Feb 4, 2019
1 parent dd16873 commit 156735a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/en/ATTRIBUTES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ Session attributes do not require the use of an external storage
solution. They are not available for use when handling out-of-session
requests. They are discarded once the skill session closes.

.. note::

Since session attributes are stored in the ``session`` property of
Alexa's :py:class:`ask_sdk_model.request_envelope.RequestEnvelope`
and :py:class:`ask_sdk_model.response_envelope.ResponseEnvelope`
objects, only serializable types can be stored under them. The
:py:class:`ask_sdk_core.serialize.DefaultSerializer` is used to
serialize / deserialize the values.

Persistent Attributes
~~~~~~~~~~~~~~~~~~~~~

Expand Down

0 comments on commit 156735a

Please sign in to comment.