Closed amhudson closed 2 years ago
For POST /workflow/workflow//{workFlowId}/revision and POST /workflow/workflow/{workFlowId}/available-parameters, the UI is sending a payload similar to the following:
{ "dag": {}, "config": { "nodes": [ { "inputs": { "output": "", "taskName": "", "value": "", "outputs": [] }, "nodeId": "", "taskId": "", "type": "", "taskVersion": 1, "outputs": [] } ] }, "changelog": {} }
where outputs array is nested within as well as on the same level as the inputs object. The proper payload should be similar to
outputs
inputs
{ "dag": {}, "config": { "nodes": [ { "inputs": { "output": "", "taskName": "", "value": "" }, "nodeId": "", "taskId": "", "type": "", "taskVersion": 1, "outputs": [] } ] }, "changelog": {} } where outputs is only provided on the same level as inputs
{ "dag": {}, "config": { "nodes": [ { "inputs": { "output": "", "taskName": "", "value": "" }, "nodeId": "", "taskId": "", "type": "", "taskVersion": 1, "outputs": [] } ] }, "changelog": {} }
Boomerang Flow
No response
Issues resolved and verified
Describe the bug
For POST /workflow/workflow//{workFlowId}/revision and POST /workflow/workflow/{workFlowId}/available-parameters, the UI is sending a payload similar to the following:
{ "dag": {}, "config": { "nodes": [ { "inputs": { "output": "", "taskName": "", "value": "", "outputs": [] }, "nodeId": "", "taskId": "", "type": "", "taskVersion": 1, "outputs": [] } ] }, "changelog": {} }
where
outputs
array is nested within as well as on the same level as theinputs
object. The proper payload should be similar to{ "dag": {}, "config": { "nodes": [ { "inputs": { "output": "", "taskName": "", "value": "" }, "nodeId": "", "taskId": "", "type": "", "taskVersion": 1, "outputs": [] } ] }, "changelog": {} }
whereoutputs
is only provided on the same level asinputs
What project does this issue relate to?
Boomerang Flow
To Reproduce
Environment
No response
Additional Contenxt
No response