Apache Airflow version
2.2.4 (latest released)
What happened
Currently we have this schema definition in the OpenAPI specs:
ScheduleInterval:
description: |
Schedule interval. Defines how often DAG runs, this object gets added to your latest task instance's
execution_date to figure out the next schedule.
readOnly: true
oneOf:
- $ref: '#/components/schemas/TimeDelta'
- $ref: '#/components/schemas/RelativeDelta'
- $ref: '#/components/schemas/CronExpression'
discriminator:
propertyName: __type
The issue with above is, when using an OpenAPI generator for Java for example (I think is same for other languages as well), it will treat ScheduleInterval as non-nullable property, although what is returned under /dags/{dag_id} or /dags/{dag_id}/details in case of a None schedule_interval is null for schedule_interval.
What you think should happen instead
We should have nullable: true in ScheduleInterval schema which will allow schedule_interval to be parsed as null.
How to reproduce
No response
Operating System
Linux
Versions of Apache Airflow Providers
No response
Deployment
Official Apache Airflow Helm Chart
Deployment details
No response
Anything else
If the maintainers think is a valid bug, I will be more than happy to submit a PR :)
Are you willing to submit PR?
Code of Conduct