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



##########
File path: airflow/cli/commands/task_command.py
##########
@@ -404,7 +404,14 @@ def task_test(args, dag=None):
     # Add CLI provided task_params to task.params
     if args.task_params:
         passed_in_params = json.loads(args.task_params)
+        for k, v in task.params.items():
+            if k in passed_in_params:
+                v.default = passed_in_params.pop(k)
+                v()  # to raise if there are any validation issues

Review comment:
       We are converting any kind of param into `Param` object only, of course 
with no attached validations, so it'll work. 




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