dimberman opened a new issue #15:
URL: https://github.com/apache/airflow-client-python/issues/15


   `
   >>> from airflow_client.client.api import dag_api
   >>> api_instance = dag_api.DAGApi(api_client)
   >>> api_instance.get_dags()
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
     File 
"/Users/dimberman/.virtualenvs/pytest-bdd/lib/python3.7/site-packages/airflow_client/client/api_client.py",
 line 789, in __call__
       return self.callable(self, *args, **kwargs)
     File 
"/Users/dimberman/.virtualenvs/pytest-bdd/lib/python3.7/site-packages/airflow_client/client/api/dag_api.py",
 line 486, in __get_dags
       return self.call_with_http_info(**kwargs)
     File 
"/Users/dimberman/.virtualenvs/pytest-bdd/lib/python3.7/site-packages/airflow_client/client/api_client.py",
 line 867, in call_with_http_info
       collection_formats=params['collection_format'])
     File 
"/Users/dimberman/.virtualenvs/pytest-bdd/lib/python3.7/site-packages/airflow_client/client/api_client.py",
 line 432, in call_api
       _check_type)
     File 
"/Users/dimberman/.virtualenvs/pytest-bdd/lib/python3.7/site-packages/airflow_client/client/api_client.py",
 line 244, in __call_api
       _check_type
     File 
"/Users/dimberman/.virtualenvs/pytest-bdd/lib/python3.7/site-packages/airflow_client/client/api_client.py",
 line 348, in deserialize
       configuration=self.configuration
     File 
"/Users/dimberman/.virtualenvs/pytest-bdd/lib/python3.7/site-packages/airflow_client/client/model_utils.py",
 line 1420, in validate_and_convert_types
       check_type=_check_type
     File 
"/Users/dimberman/.virtualenvs/pytest-bdd/lib/python3.7/site-packages/airflow_client/client/model_utils.py",
 line 1287, in attempt_convert_item
       valid_classes_ordered = order_response_types(valid_classes)
     File 
"/Users/dimberman/.virtualenvs/pytest-bdd/lib/python3.7/site-packages/airflow_client/client/model_utils.py",
 line 920, in order_response_types
       key=lambda class_or_instance: index_getter(class_or_instance)
     File 
"/Users/dimberman/.virtualenvs/pytest-bdd/lib/python3.7/site-packages/airflow_client/client/model_utils.py",
 line 920, in <lambda>
       key=lambda class_or_instance: index_getter(class_or_instance)
     File 
"/Users/dimberman/.virtualenvs/pytest-bdd/lib/python3.7/site-packages/airflow_client/client/model_utils.py",
 line 916, in index_getter
       raise ApiValueError("Unsupported type: %s" % class_or_instance)
   airflow_client.client.exceptions.ApiValueError: Unsupported type: <class 
'object'>
   `
   
   I think the new version of OpenAPI might have broken the client. I get these 
from following most of the examples except config. @mik-laj any idea what might 
cause this?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to