[BUG][Python-Flask] Primitive type bytearray deserialization missing in util.py. #2724 (#3642)

* added bytearray to list of types

* adding regenerated sample files for python-flask
This commit is contained in:
Shogoki
2019-08-22 11:15:10 +02:00
committed by William Cheng
parent 8741a8ca35
commit a748e1ff9a
6 changed files with 5 additions and 17 deletions

View File

@@ -16,7 +16,7 @@ def _deserialize(data, klass):
if data is None:
return None
if klass in six.integer_types or klass in (float, str, bool):
if klass in six.integer_types or klass in (float, str, bool, bytearray):
return _deserialize_primitive(data, klass)
elif klass == object:
return _deserialize_object(data)