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
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
In Configuration class its needed define self.access_token = None in __init__ function to use it in auth_settings function, without this its was generated an error:
Traceback (most recent call last):
File "src/test.py", line 13, in <module>
ok = api.organizacion_activos_list()
File "/home/jidj85/envpi/lib/python3.7/site-packages/smi/api/organizacion_api.py", line 338, in organizacion_activos_list
return self.organizacion_activos_list_with_http_info(**kwargs) # noqa: E501
File "/home/jidj85/envpi/lib/python3.7/site-packages/smi/api/organizacion_api.py", line 444, in organizacion_activos_list_with_http_info
_request_auth=local_var_params.get('_request_auth'))
File "/home/jidj85/envpi/lib/python3.7/site-packages/smi/api_client.py", line 381, in call_api
_request_auth)
File "/home/jidj85/envpi/lib/python3.7/site-packages/smi/api_client.py", line 170, in __call_api
request_auth=_request_auth)
File "/home/jidj85/envpi/lib/python3.7/site-packages/smi/api_client.py", line 559, in update_params_for_auth
auth_setting = self.configuration.auth_settings().get(auth)
File "/home/jidj85/envpi/lib/python3.7/site-packages/smi/configuration.py", line 423, in auth_settings
if self.access_token is not None:
AttributeError: 'Configuration' object has no attribute 'access_token'
Bug Report
Description
In Configuration class its needed define
self.access_token = None
in__init__
function to use it inauth_settings
function, without this its was generated an error:openapi-generator version
openapi-generator-cli-5.0.0-20201112.170402-866.jar
OpenAPI declaration file content or url
https://smi.enerlink.cl/api/schema
Generation Details
Steps to reproduce
Related issues/PRs
None
Suggest a fix
In Configuration class its needed define
self.access_token = None
in__init__
function to use it inauth_settings
functionThe text was updated successfully, but these errors were encountered: