raphaelauv commented on issue #43433:
URL: https://github.com/apache/airflow/issues/43433#issuecomment-2455707046

   so with `type=["none", "array"]` dag parsing is failing
   
   ```log
   Broken DAG: [/opt/airflow/dags/dags/aaaa.py] Traceback (most recent call 
last):
     File 
"/home/airflow/.local/lib/python3.12/site-packages/jsonschema/validators.py", 
line 1328, in validate
       cls.check_schema(schema)
     File 
"/home/airflow/.local/lib/python3.12/site-packages/jsonschema/validators.py", 
line 317, in check_schema
       raise exceptions.SchemaError.create_from(error)
   jsonschema.exceptions.SchemaError: ['none', 'array'] is not valid under any 
of the given schemas
   
   ```
   ----
   
   but using a not none default value is working
   
   ```python
   params={
               "x": Param([{}], type="array", items={"type": "object"}),
           }
   ```
   
   it let me trigger the dag with the argument `[{"toto": 5,"tata":"hello"}]`


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