You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.
Function _example_from_array_spec in swagger_parser.py contains the following line: return example_dict[example_dict.keys()[0]]
which throws
TypeError: 'dict_keys' object does not support indexing
error in Python 3 since example_dict.keys() returns a view object not a list.
It should be something like example_dict[list(example_dict)[0]] in order to work for Python 3.
The text was updated successfully, but these errors were encountered:
Function _example_from_array_spec in swagger_parser.py contains the following line:
return example_dict[example_dict.keys()[0]]
which throws
error in Python 3 since
example_dict.keys()
returns a view object not a list.It should be something like
example_dict[list(example_dict)[0]]
in order to work for Python 3.The text was updated successfully, but these errors were encountered: