Max Eggers
07/10/2023, 2:45 PMChristopher Boyd
07/10/2023, 2:45 PMMax Eggers
07/10/2023, 2:46 PMChristopher Boyd
07/10/2023, 2:46 PMMax Eggers
07/10/2023, 2:55 PMclass ParamGroup(BaseModel):
another_field: Int
specific_param: Union[ThingOne, ThingTwo, Etc] = Field(description="whatever")
class Params(BaseModel):
a_field: Int
param_group: ParamGroup
The UI renders the union field fine, and each model in the union has fields that I can set fine. But then when I run the flow the params look something like:
{
a_field: 123
param_group: {
another_field: 123
}
}
Notice specific_param
is not present. And then another layer of weirdness is when I make the JSON myself, like:
{
a_field: 123
param_group: {
another_field: 123
specific_param: {whatever: 123}
}
}
and paste it into the JSON for a new flow run, the value is lost and the resulting text is
{
a_field: 123
param_group: {
another_field: 123
specific_param: {}
}
}
Christopher Boyd
07/10/2023, 3:54 PMMax Eggers
07/10/2023, 4:03 PMChristopher Boyd
07/10/2023, 4:05 PMMax Eggers
07/10/2023, 4:05 PMChristopher Boyd
07/10/2023, 5:56 PMMax Eggers
07/10/2023, 5:56 PMChristopher Boyd
07/10/2023, 6:04 PMMax Eggers
07/10/2023, 7:06 PMChristopher Boyd
07/10/2023, 9:13 PMMax Eggers
07/10/2023, 9:13 PMChristopher Boyd
07/11/2023, 4:08 PMMax Eggers
07/11/2023, 4:09 PMChristopher Boyd
07/11/2023, 6:00 PMMax Eggers
07/11/2023, 6:27 PMEvan Curtin
07/12/2023, 2:55 PMChristopher Boyd
07/12/2023, 3:27 PMMax Eggers
07/13/2023, 7:51 PMChristopher Boyd
07/13/2023, 7:51 PMMax Eggers
07/13/2023, 7:52 PMChristopher Boyd
07/13/2023, 7:53 PMMax Eggers
07/13/2023, 7:53 PMChristopher Boyd
07/13/2023, 7:54 PMMax Eggers
07/13/2023, 7:54 PM