{ "name": "verify-call-workflow-missing-input", "nodes": [ { "id": "n1", "name": "Trigger", "type": "click-trigger", "position": { "x": 0, "y": 0 }, "config": {} }, { "id": "call", "name": "Call", "type": "call-workflow", "position": { "x": 0, "y": 100 }, "config": { "workflowId": "{{helper:sub}}", "inputSource": "fields", "fields": [ { "name": "label", "value": "no number given" } ] } } ], "connections": [ { "sourceNodeId": "n1", "sourceOutput": "main", "targetNodeId": "call", "targetInput": "data" } ], "expect": { "call": { "status": "failed", "errorContains": "did not pass n" } }, "helpers": [ { "key": "sub", "name": "verify sub: double a number", "active": true, "nodes": [ { "id": "in", "name": "Input", "type": "workflow-input", "position": { "x": 0, "y": 0 }, "config": { "fields": [ { "name": "n", "type": "number", "required": true } ] } }, { "id": "calc", "name": "Double", "type": "code", "position": { "x": 0, "y": 100 }, "config": { "code": "const d=input.data||input; return { doubled: Number(d.n)*2, label: d.label || \"none\" };" } }, { "id": "out", "name": "Output", "type": "workflow-output", "position": { "x": 0, "y": 200 }, "config": {} } ], "connections": [ { "sourceNodeId": "in", "sourceOutput": "main", "targetNodeId": "calc", "targetInput": "data" }, { "sourceNodeId": "calc", "sourceOutput": "main", "targetNodeId": "out", "targetInput": "data" } ] } ] }