GitHub user ppseverin edited a comment on the discussion: Nested parameters and
JSON Schema with arrays for DAG Run configurations
I don't know if anyone managed to solve this, but I tried with the kwarg
"schema" and it kinda worked. Now the default value always include `"__type":
"dict"` and `"__var":{...`. If I remove all those it runs just fine.
The other thing I noticed is that the `title`, `type` and `section` (and any
other keyword except for description and default) are ignored.
I went to the [param.py
code](https://github.com/apache/airflow/blob/main/airflow/models/param.py#L39)
and I found that when `schema` is provided, every other keyword is ignored,
except for default and description:
```
class Param:
"""
Class to hold the default value of a Param and rule set to do the
validations.
Without the rule set it always validates and returns the default value.
:param default: The value this Param object holds
:param description: Optional help text for the Param
:param schema: The validation schema of the Param, if not given then all
kwargs except
default & description will form the schema
"""
```
Is there any way to fix this without using the schema keyword?
GitHub link:
https://github.com/apache/airflow/discussions/25064#discussioncomment-11137908
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]