Skip to content

Commit d406a2c

Browse files
committed
modified: swagger_py_codegen/jsonschema.py
1 parent a4c132f commit d406a2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swagger_py_codegen/jsonschema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def has(self, key):
156156
def keys(self):
157157
if isinstance(self.data, dict):
158158
return list(self.data.keys())
159-
return list(vars(self.data).keys())
159+
return list(getattr(self.data, '__dict__', {}).keys())
160160

161161
def get_check(self, key, default=None):
162162
if isinstance(self.data, dict):

0 commit comments

Comments
 (0)