varun-shahdadpuri opened a new issue #29:
URL: https://github.com/apache/airflow-client-python/issues/29
Response from API call via Postman -
`'/dags?limit=1`
```
{
"dag_id": "Disaster_Recovery",
"description": null,
"file_token":
"Ii91c3IvbG9jYWwvYWlyZmxvdy9kYWdzL2NvbmNvcmRfZGFnc19kci5weSI.fWukEYmKdWxEz4D_qEy-F2BqCZw",
"fileloc": "/usr/local/airflow/dags/concord_dags_dr.py",
"is_active": true,
"is_paused": false,
"is_subdag": false,
"owners": [
"Airflow"
],
"root_dag_id": null,
"schedule_interval": {
"__type": "CronExpression",
"value": "*/5 * * * *"
},
"tags": []
}
```
Using the api-client to get the same information leads to error -
```
with airflow_client.client.ApiClient(self.configuration) as
api_client:
# Create an instance of the API class
api_instance = dag_api.DAGApi(api_client)
try:
api_response = api_instance.get_dags(limit=1)
pprint(api_response)
```
```
airflow_client.client.exceptions.ApiValueError: Invalid inputs given to
generate an instance of 'DAGCollectionAllOf'. The input data was invalid for
the allOf schema 'DAGCollectionAllOf' in the composed schema 'DAGCollection'.
Error=DAG has no attribute 'is_active' at
['received_data']['dags'][0]['is_active']
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]