Does anyone know if there is a way to allow a para...
# singer-targets
m
Does anyone know if there is a way to allow a parameter type of dict to a plugin? For example, sqlalchemy engine url configuration allow the query parameter to handle additional configuration of the engine through the url (see https://docs.sqlalchemy.org/en/20/core/engines.html#sqlalchemy.engine.URL.create). The query parameter accepts a 'dictionary of string keys to string values '. I am looking through the typing helpers for the singer properties, and I don't see anything suitable (https://sdk.meltano.com/en/latest/typing.html)? If anyone had a suggestion about a clean way to pass this query dictionary parameter through from the target configuration I would love to hear it!
v
Yes you could!
jsonschema type of Object
e
And you can even control the type of the arbitrary props with `pattern_properties`:
Copy code
ObjectType(pattern_properties=StringType)
m
I will try that out. Thanks to both of you