Lucas Hicks
Lucas Hicks4d ago

Creating flow input schema from nested JSON

When creating a flow's inputs from JSON, is there any way for windmill to capture properties of an object in array when its not at the first level? For example (which probably makes more sense):
{
"testarr": [
{
"prop_num": 5,
"prop_str": "string",
"arr": [
{
"num": 5,
"name": "My name"
}
]
}
]
}
{
"testarr": [
{
"prop_num": 5,
"prop_str": "string",
"arr": [
{
"num": 5,
"name": "My name"
}
]
}
]
}
With this JSON, windmill doesn't pick up on properties of objects in the arr array, and interprets it as an array of strings.
No description
2 Replies
rubenf
rubenf4d ago
You want to select "Items are objects"
Lucas Hicks
Lucas Hicks4d ago
My issue is that I'd like to input the nested JSON and for windmill to pickup that that field is an array of objects, rather than having to manually select it