Merge pull request #18 from Azure/annatisch-patch-1
Allow model as input for type: 'object'
This commit is contained in:
Коммит
1eba0d4b73
|
@ -512,6 +512,8 @@ class Serializer(object):
|
|||
obj_type = type(attr)
|
||||
if obj_type in self.basic_types:
|
||||
return self.serialize_basic(attr, self.basic_types[obj_type])
|
||||
elif obj_type in self.dependencies.values():
|
||||
return self._serialize(attr)
|
||||
|
||||
if obj_type == dict:
|
||||
serialized = {}
|
||||
|
|
Загрузка…
Ссылка в новой задаче