airflow/models/dag.py
def validate_schedule_and_params(self):
        """
        Validates & raise exception if there are any Params in the DAG which neither have a default value nor
        have the null in schema['type'] list, but the DAG have a schedule_interval which is not None.
        """
        if not self.timetable.can_run:
            return

        for k, v in self.params.items():
            # As type can be an array, we would check if `null` is an allowed type or not
            if not v.has_value and ("type" not in v.schema or "null" not in v.schema["type"]):
                raise AirflowException(
                    "DAG Schedule must be None, if there are any required params without default values"
                )

        Validates & raise exception if there are any Params in the DAG which neither have a default value nor
        have the null in schema['type'] list, but the DAG have a schedule_interval which is not None.
        
Validates & raise exception if there are any Params in the DAG which neither have a default value nor
have the null in schema['type'] list, but the DAG have a schedule_interval which is not None.
Validates & raise exception if there are any Params in the DAG which neither have a default value nor have the null in schema [ ' type ' ] list but the DAG have a schedule_interval which is not None .
def validate_schedule_and_params(self):
        if not self.timetable.can_run:
            return
        for k, v in self.params.items():
            if not v.has_value and ("type" not in v.schema or "null" not in v.schema["type"]):
                raise AirflowException(
                    "DAG Schedule must be None, if there are any required params without default values"
                )
def validate_schedule_and_params ( self ) : if not self . timetable . can_run : return for k , v in self . params . items ( ) : if not v . has_value and ( "type" not in v . schema or "null" not in v . schema [ "type" ] ) : raise AirflowException ( "DAG Schedule must be None, if there are any required params without default values" )
Validates & raise exception if there are any Params in the DAG which neither have a default value nor
have the null in schema['type'] list, but the DAG have a schedule_interval which is not None.
Validates & raise exception if there are any Params in the DAG which neither have a default value nor have the null in schema [ ' type ' ] list but the DAG have a schedule_interval which is not None .
"""
        Validates & raise exception if there are any Params in the DAG which neither have a default value nor
        have the null in schema['type'] list, but the DAG have a schedule_interval which is not None.
        """ # As type can be an array, we would check if `null` is an allowed type or not
self