https://dagster.io/ logo
#dagster-support
Title
# dagster-support
c

Charlie Bini

05/27/2022, 4:02 PM
In a
config_schema
,
Map
allows you to define a
dict
with an arbitrary number of items, right? Each item will be a
String
key and a
String
value, so is this the correct way to use it:
Map(key_type=String, inner_type=String)
🤖 1
I want to take that
dict
and pass it as
**kwargs
to a function
s

sean

05/27/2022, 7:35 PM
Hi Charlie, yes, the way you’ve specified
Map
should work. You can also just use
str
instead of
String
. You will have no problem taking the
dict
value, it’s just a Python dict, the
Map
is just used for type-checking purposes.
c

Charlie Bini

05/27/2022, 7:36 PM
yeah I actually think I need that or
Permissive
, turns out the item value can be a number of types
s

sean

05/27/2022, 8:45 PM
Permissive
seems like your best bet then.