msumit commented on a change in pull request #17100:
URL: https://github.com/apache/airflow/pull/17100#discussion_r682534162



##########
File path: airflow/models/dag.py
##########
@@ -2312,6 +2327,19 @@ def set_edge_info(self, upstream_task_id: str, 
downstream_task_id: str, info: Ed
         """
         self.edge_info.setdefault(upstream_task_id, {})[downstream_task_id] = 
info
 
+    def validate_schedule_and_params(self):
+        for k, v in self.params.items():
+            if isinstance(v, Param):
+                if (
+                    v.default is None
+                    and self.schedule_interval is not None
+                    and ('type' not in v.schema or "null" not in 
v.schema['type'])
+                ):

Review comment:
       `type` can be an array, hence we are checking `in`




-- 
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]


Reply via email to