Skip to content

Commit 57907b1

Browse files
author
alex.chen
committed
fix the issue of cannot deseralize polymorphic class
1 parent 319c880 commit 57907b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/swagger-codegen/src/main/resources/python/api_client.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ class ApiClient(object):
598598
)
599599

600600
def __hasattr(self, object, name):
601-
return name in object.__dict__
601+
return name in object.__class__.__dict__
602602

603603
def __deserialize_model(self, data, klass):
604604
"""Deserializes list or dict to model.

0 commit comments

Comments
 (0)