shawnleehere opened a new issue, #124:
URL: https://github.com/apache/airflow-client-python/issues/124
### Description
Encountered an ApiValueError when attempting to retrieve the
schedule_interval field using get_dag_details in the Airflow client. The error
suggests inconsistent values for the schedule_interval property.
### Code Snippet
```
detail = api_instance.get_dag_details(dag_id=dag_id,
fields=['schedule_interval'])
LOGGER.info(f"DAG details: {detail}")
LOGGER.info(f"Type of schedule: {detail['schedule_interval']}")
```
### Error Message
```
File
"/home/lixiaopeng/.virtualenvs/recalculation/lib/python3.10/site-packages/airflow_client/client/model_utils.py",
line 668, in __getitem__
value = self.get(name, self.__unset_attribute_value__)
File
"/home/lixiaopeng/.virtualenvs/recalculation/lib/python3.10/site-packages/airflow_client/client/model_utils.py",
line 659, in get
raise ApiValueError(
airflow_client.client.exceptions.ApiValueError: Values stored for property
schedule_interval in DAGDetail differ when looking at self and self's composed
instances. All values must be the same at
['['received_data']']['schedule_interval']
```
### Debug

### Environment
Airflow version: [v2.10.5]
airflow-client-python version: [2.10.0]
Python version: [3.10.12]
Operating System: [Ubuntu]
--
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]