Eric Loreaux
03/16/2023, 4:29 PMField(
config=Map(str, Array(
Shape(fields={
"key1": Field(...),
"key2": Field(
...
config=Map(str, Map(str, Any)),
...
)
}
)
))
)
Dagster is complaining about the config=Map(str, Map(str, Any))
line, saying "Attempted to pass Field(<dagster._config.field_utils.Map object at 0x1112e7fa0>, default=@, is_required=True) to a Field that expects a valid dagster type usable in config (e.g. Dict, Int, String et al)." Am I missing something about when I can and cannot use certain types?yuhan
03/16/2023, 10:49 PM@op(
config_schema={
"foo": Field(
Map(
str,
Array(Shape(fields={"key1": str, "key2": Field(config=Map(str, Map(str, Any)))})),
)
)
}
)
def my_op():
pass
@job
def my_job():
my_op()
this works for me