diff --git a/tests/test_client.py b/tests/test_client.py index 8a1d704..fbed6ee 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -386,7 +386,11 @@ def test_emd(self): def test_put_items(self): items = { - 'bob': {'age': 42, 'feature': 'mustache'}, + 'bob': { + 'age': 42, + 'feature': 'mustache', + 'female': False + }, 'linda': { 'age': 40, 'feature': 'singing', diff --git a/v3io/__init__.py b/v3io/__init__.py index 17a3314..7414642 100644 --- a/v3io/__init__.py +++ b/v3io/__init__.py @@ -1 +1 @@ -__version__ = '0.3.8' +__version__ = '0.3.10' diff --git a/v3io/dataplane/request.py b/v3io/dataplane/request.py index 19d1dfe..799b5c0 100644 --- a/v3io/dataplane/request.py +++ b/v3io/dataplane/request.py @@ -378,7 +378,10 @@ def _dict_to_typed_attributes(d): else: raise AttributeError('Attribute {0} has unsupported type {1}'.format(key, attribute_type)) - typed_attributes[key] = {type_key: type_value or str(value)} + if type_value is None: + type_value = str(value) + + typed_attributes[key] = {type_key: type_value} return typed_attributes