sephi
05/14/2020, 8:54 AMdict
type within a solid configuration?
I'm not able to understand how to define a general dict from the error :
Passing Dict
sets an error
DagsterInvalidDefintionError: Attempted to pass <dagster.core.types.python_dict.DagsterDictApi object> to a Field that expects a valid dagster type usable in config (e.g. Dict, Int, String et al).The
Permissive
is too strict - I just need a general dict
type
Tried
Shape({})
> but still problematic
1. A Python primitive type that resolve to dagster config
types: int, float, bool, str.
2. A dagster config type: Int, Float, Bool, String, StringSource, Path, Any,
Array, Noneable, Selector, Shape, Permissive, etc.
3. A bare python dictionary, which is wrapped in Shape. Any
values in the dictionary get resolved by the same rules, recursively.
4. A bare python list of length one which itself is config type.
Becomes Array with list element as an argument.
schrockn
05/14/2020, 1:19 PMsephi
05/14/2020, 2:20 PMPermissive
I got an error, then I gave a Permissive({key:val})
- too strict . finally I just need to Permissive()
which worked - sorry for the hassle.