:wave: Hey all, I was curious if Flyte supports s...
# flyte-support
m
👋 Hey all, I was curious if Flyte supports something like:
Can we input lists of objects in the flyte UI? i.e input like param1 and param2 and then click some “plus” button to add another object w param1, param2 and so on
f
what is the function declaration in python
Copy code
@dataclass
class Params:
   param1: int
   param2: int

@workflow
def my_wf(x: List[Params]):
    ...
This should alow you to add a list automatically with
+
signs
👀 1
m
Thats exactly what I want. Let me try it, Thank you!
❤️ 1
Screenshot 2024-06-18 at 11.00.09 AM.png
I see this in the Flyte UI which is not intuitive how I should add structs. Is it possible Im on an old version?
f
Hmm this used to work, I think we are working on an overhaul at union - available on union soon. For oss will take some time. Feel Free to open a PR, with react jsonschema