Skip to content

Commit a942c66

Browse files
committed
docs(workflows): make the apply-operations response example a wired graph
1 parent 8020723 commit a942c66

2 files changed

Lines changed: 42 additions & 6 deletions

File tree

‎apps/docs/openapi-v2-workflows.json‎

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -706,8 +706,20 @@
706706
"agent-1": "a3f1c0b2-7a44-4c1d-9d3a-2b8e5f0a1c77"
707707
},
708708
"lint": {
709-
"sources": [],
710-
"sinks": [],
709+
"sources": [
710+
{
711+
"blockId": "start-1",
712+
"blockName": "Start",
713+
"blockType": "start_trigger"
714+
}
715+
],
716+
"sinks": [
717+
{
718+
"blockId": "a3f1c0b2-7a44-4c1d-9d3a-2b8e5f0a1c77",
719+
"blockName": "Triage",
720+
"blockType": "agent"
721+
}
722+
],
711723
"orphanBlocks": [],
712724
"emptyOutgoingPorts": [],
713725
"invalidBranchPorts": [],
@@ -9628,8 +9640,20 @@
96289640
"agent-1": "a3f1c0b2-7a44-4c1d-9d3a-2b8e5f0a1c77"
96299641
},
96309642
"lint": {
9631-
"sources": [],
9632-
"sinks": [],
9643+
"sources": [
9644+
{
9645+
"blockId": "start-1",
9646+
"blockName": "Start",
9647+
"blockType": "start_trigger"
9648+
}
9649+
],
9650+
"sinks": [
9651+
{
9652+
"blockId": "a3f1c0b2-7a44-4c1d-9d3a-2b8e5f0a1c77",
9653+
"blockName": "Triage",
9654+
"blockType": "agent"
9655+
}
9656+
],
96339657
"orphanBlocks": [],
96349658
"emptyOutgoingPorts": [],
96359659
"invalidBranchPorts": [],

‎apps/sim/lib/api/contracts/v2/openapi/workflows.ts‎

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,20 @@ const declaredRoutes = [
403403
inputValidationErrors: [],
404404
mintedBlockIds: { 'agent-1': 'a3f1c0b2-7a44-4c1d-9d3a-2b8e5f0a1c77' },
405405
lint: {
406-
sources: [],
407-
sinks: [],
406+
sources: [
407+
{
408+
blockId: 'start-1',
409+
blockName: 'Start',
410+
blockType: 'start_trigger',
411+
},
412+
],
413+
sinks: [
414+
{
415+
blockId: 'a3f1c0b2-7a44-4c1d-9d3a-2b8e5f0a1c77',
416+
blockName: 'Triage',
417+
blockType: 'agent',
418+
},
419+
],
408420
orphanBlocks: [],
409421
emptyOutgoingPorts: [],
410422
invalidBranchPorts: [],

0 commit comments

Comments
 (0)