uranusjr opened a new pull request, #77081:
URL: https://github.com/apache/airflow/pull/77081

   A param entry's example already wrote default only for the parameter that 
declares one, but the ADR never said that the key's presence, not its value, is 
what tells an optional parameter from a required one. A reader that treats an 
absent default the same as "default": null gets expand_kwargs() wrong either 
way: a parameter declared with a None default becomes required, or a required 
parameter quietly takes None.
   
   State the rule the format already implies. An entry has a default key 
exactly when the stub declares a default, and "default": null is a None 
default, not a missing one. Writers emit the key whenever there is a default, 
null included, readers go by the key, and anything that rewrites an entry keeps 
it. The server's resolution order now says a parameter still unbound after 
default fails the task, and an explicit has-a-default flag is recorded as a 
rejected alternative.
   
   Nothing emits or reads param entries yet, so no implementation changes.
   
   Noticed while designing #77080.


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