adamszustak opened a new issue, #49157:
URL: https://github.com/apache/airflow/issues/49157
### Apache Airflow version
Other Airflow 2 version (please specify below)
### If "Other Airflow 2 version" selected, which one?
2.9.3
### What happened?
Despite missing the `retries` (set to None) parameter, DAG was successfully
triggered. However, a separate attempt to list DAG tasks using API produced the
following error:
```
{
"detail": "None is not of type 'number'\n\nFailed validating 'type' in
schema['properties']['tasks']['items']['properties']['retries']:\n {'type':
'number', 'readOnly': True}\n\nOn instance['tasks'][0]['retries']:\n None",
"status": 500,
"title": "Response body does not conform to specification",
"type":
"https://airflow.apache.org/docs/apache-airflow/2.9.3/stable-rest-api-ref.html#section/Errors/Unknown"
}
```
After removing `retries` param or adding integer to it, endpoint returns
data.
### What you think should happen instead?
Dag tasks listing call should not fail if the DAG `retries` is not defined.
### How to reproduce
1. Write DAG with `retries` set to None
2. Issue request to `https://<composer-url>/api/v1/dags/<dag-id>/tasks`
### Operating System
composer-2.10.1-airflow-2.9.3
### Versions of Apache Airflow Providers
apache-airflow==2.9.3+composer
apache-airflow-providers-apache-beam==5.9.1
apache-airflow-providers-celery==3.8.5
apache-airflow-providers-cncf-kubernetes==10.0.1
apache-airflow-providers-common-compat==1.2.2
apache-airflow-providers-common-io==1.4.2
apache-airflow-providers-common-sql==1.20.0
apache-airflow-providers-dbt-cloud==3.11.2
apache-airflow-providers-fab==1.2.2
apache-airflow-providers-ftp==3.11.1
apache-airflow-providers-google==10.26.0
apache-airflow-providers-hashicorp==3.8.0
apache-airflow-providers-http==4.13.3
apache-airflow-providers-imap==3.7.0
apache-airflow-providers-mysql==5.7.4
apache-airflow-providers-postgres==5.14.0
apache-airflow-providers-sendgrid==3.6.0
apache-airflow-providers-smtp==1.8.1
apache-airflow-providers-sqlite==3.9.1
apache-airflow-providers-ssh==3.14.0
### Deployment
Google Cloud Composer
### Deployment details
_No response_
### Anything else?
_No response_
### Are you willing to submit PR?
- [x] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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]