I would like Dagster to accept empty parameters in the config.yaml and treat them as having a value of None.
When I start dagit I can see that the parameter is null. This makes sense because I've left the value of the parameter empty in the config.yaml.
However, when I execute the pipeline I get the following error:
I'm not sure why it's expecting a value of class str when I've specified Noneable(str) type in the solid configuration. And funnily enough, when I pass in a non-null value for example_parameter in dagit, the pipeline executes perfectly fine.
Below is the config I used for the solid
@solid(
description="Example solid",
config={
"example_parameter": Field(
Noneable(str),
is_required=False
)
}
)
def example_solid(context):
"""an example solid"""
etc...
How can I make dagster accept null values and parse them as None?