I have a parameter of type List<String>
I want to pass to a Dataflow job using the web UI. Whats the right way to do that? I tried some intuitive ways like passing JSON or same key multiple times, but it did not work.
Any intuitive formats like foo,bar
or [foo,bar]
or ["foo","bar"]
etc result in
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) java.base/java.lang.Thread.run(Thread.java:834) Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of `java.util.ArrayList` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('foo,bar') at [Source: (String)""foo,bar""; line: 1, column: 1]
Error is pretty self explanatory, but it seems like this use case should be quite common and should be supported out of the box, with out using JSONArray (or some other custom type) in place of your List.