Samuel Stütz
05/31/2022, 1:40 PMField(
Noneable(list),
default_value=["GIT_HASH", "DAGSTER_VERSION"],
is_required=False,
description="Li.....",
),
I tried many different versions … all say invalid configurationZach
05/31/2022, 1:58 PMSamuel Stütz
05/31/2022, 2:03 PMSamuel Stütz
05/31/2022, 2:04 PMZach
05/31/2022, 2:23 PMField(Noneable(Array(str)), default_value=['GIT_HASH', 'DAGSTER_VERSION'])?
Samuel Stütz
05/31/2022, 2:31 PMField(
Noneable(dagster.Array(str)),
default_value=['GIT_HASH', 'DAGSTER_VERSION'],
is_required=False,
also does not work
) cannot be resolved. This value can be a: - Field - Python primitive types that resolve to dagster config types - int, float, bool, str, list. - A dagster config type: Int, Float, Bool, Array, Optional, Selector, Shape, Permissive, Map - A bare python dictionary, which is wrapped in Field(Shape(...)). Any values in the dictionary get resolved by the same rules, recursively. - A python list with a single entry that can resolve to a type, e.g. [int]
Zach
05/31/2022, 2:38 PMField(Noneable(Array(str)))
pattern in my own code so it seems to workSamuel Stütz
05/31/2022, 2:47 PMSamuel Stütz
05/31/2022, 2:47 PMZach
05/31/2022, 2:51 PM@op(config_schema={"chromosomes": Array(str),
"test_field": Field(Noneable(Array(str)), default_value=['1', '2'], is_required=False)})
Samuel Stütz
05/31/2022, 3:44 PMZach
05/31/2022, 3:46 PMowen
05/31/2022, 10:49 PMdef get_config_schema():
return {"test_field": Field(Noneable(Array(str)), default_value=['1', '2'], is_required=False)}
@op(config_schema=get_config_schema())
def foo_op(context):
...
to work, so it's possible you were hitting some other issue