Must either be a string or None. Got \"list\"."

Hi All,

The publish statement assigned the output as a list to a variable and the next task is expecting string type instead of the LIST. Is it possible to convert the output from LIST to STRING.

Please help me if anyone worked this kind of requirement.

Thanks and Regards,
Ramesh

You should be able to use a Jinja filter to do this.

Thank you @blag for your quick response.

Jinja:
param: {{ ctx().foo | string }}
Yaql:
param: <% ctx().foo.join("") %>

Thank you @Bryan for your help.