jens-scheffler-bosch opened a new pull request, #34248:
URL: https://github.com/apache/airflow/pull/34248

   This PR adjusts the DAG level Params validation to the validation also used 
during triggering and DAG constructor.
   
   It resolves the problem reported in #34227 that params with a value of 
`None` are leading to invalid/unparsable DAGs after upgrade to Airflow 2.7.1 as 
a side effect of #31301 - reason is that the validation previously checked for 
`has_value` assuming that the schema also defines a required field.
   
   How to test:
   * See all tests are green
   * Define a DAG with the code below and see that with the fix applied, the 
DAG is parse-able again and can be used:
   ```
   @dag(
       dag_id="dag-example",
       start_date=datetime(2023, 2, 2, tz="America/New_York"),
       schedule="41 2 * * *",
       params={
           "any_param": None,
       },
   ):
       ...
   ```
   
   closes: #34227
   related: #31299, #31301


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