jgoedeke commented on issue #59551:
URL: https://github.com/apache/airflow/issues/59551#issuecomment-3665357640

   To make the DAG parse we set `default=None` in the Param:
   
   ````
           'start_time': Param(
               default=None,
               title='Start time of the test',
               type=['string', 'null'],
               format='date-time',
           ),
   ````
   
   But then when using the HITL action the following error occurs:
   
   ````
   [2025-12-17 13:10:55] ERROR - Task failed with exception
   HITLTriggerEventError: {'error': "Invalid input for param start_time: 
{'value': None, 'schema': {'title': 'Start time of the test', 'type': 
['string', 'null'], 'format': 'date-time'}} is not of type 'string', 
'null'\n\nFailed validating 'type' in schema:\n    {'title': 'Start time of the 
test',\n     'type': ['string', 'null'],\n     'format': 'date-time'}\n\nOn 
instance:\n    {'value': None,\n     'schema': {'title': 'Start time of the 
test',\n                'type': ['string', 'null'],\n                'format': 
'date-time'}}", 'error_type': 'validation'}
     File 
"/home/airflow/.local/lib/python3.11/site-packages/airflow/sdk/execution_time/task_runner.py",
 line 934 in run
     File 
"/home/airflow/.local/lib/python3.11/site-packages/airflow/sdk/execution_time/task_runner.py",
 line 1325 in _execute_task
     File 
"/home/airflow/.local/lib/python3.11/site-packages/airflow/sdk/bases/operator.py",
 line 1633 in resume_execution
     File 
"/home/airflow/.local/lib/python3.11/site-packages/airflow/providers/standard/operators/hitl.py",
 line 184 in execute_complete
     File 
"/home/airflow/.local/lib/python3.11/site-packages/airflow/providers/standard/operators/hitl.py",
 line 201 in process_trigger_event_error
   ````


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