You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3ecef5c
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: apps/docs/openapi-v2-workflows.json
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -739,7 +739,7 @@
739
739
"notes": []
740
740
},
741
741
"warnings": [
742
-
"Workflow lint found issues. Fix these before continuing: Blocks missing required fields: \"Triage\" (systemPrompt)"
742
+
"Workflow lint found issues (Blocks missing required fields: 1). The findings are in `lint`."
743
743
],
744
744
"needsRedeployment": true,
745
745
"dryRun": false
@@ -8885,7 +8885,7 @@
8885
8885
"type": "null"
8886
8886
}
8887
8887
],
8888
-
"description": "Why a manual run from the editor's Run button would be refused before it starts: no enabled trigger it can start from, more than one API trigger, or a selected trigger with no outgoing connection. `null` when no manual-run issue is reported: the run can begin, only a chat trigger can start the workflow, or the graph is empty (reported in `notes` instead)."
8888
+
"description": "Why a manual run from the editor's Run button would be refused before it starts: no enabled trigger it can start from, more than one API trigger, or a selected trigger with no outgoing connection. The API run endpoints do not apply these checks. `null` when no manual-run issue is reported: the run can begin, only a chat trigger can start the workflow, or the graph is empty (reported in `notes` instead)."
8889
8889
},
8890
8890
"notes": {
8891
8891
"type": "array",
@@ -9537,7 +9537,7 @@
9537
9537
"items": {
9538
9538
"type": "string"
9539
9539
},
9540
-
"description": "Non-fatal notes about blocks and edges that were normalized or dropped before persistence and, when `lint` has findings, one summary of them, so the findings are not lost to a caller that reads only `warnings`. Empty when there is nothing to report."
9540
+
"description": "Non-fatal notes about blocks and edges that were normalized or dropped before persistence and, when `lint` has findings, one line counting them by category, so a caller that reads only `warnings` still learns they exist. The findings themselves are in `lint`. Empty when there is nothing to report."
9541
9541
},
9542
9542
"needsRedeployment": {
9543
9543
"type": "boolean",
@@ -9673,7 +9673,7 @@
9673
9673
"notes": []
9674
9674
},
9675
9675
"warnings": [
9676
-
"Workflow lint found issues. Fix these before continuing: Blocks missing required fields: \"Triage\" (systemPrompt)"
9676
+
"Workflow lint found issues (Blocks missing required fields: 1). The findings are in `lint`."
Copy file name to clipboardExpand all lines: apps/sim/lib/api/contracts/v2/workflows.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -454,7 +454,7 @@ const v2WorkflowLintSchema = z
454
454
})
455
455
.nullable()
456
456
.describe(
457
-
"Why a manual run from the editor's Run button would be refused before it starts: no enabled trigger it can start from, more than one API trigger, or a selected trigger with no outgoing connection. `null` when no manual-run issue is reported: the run can begin, only a chat trigger can start the workflow, or the graph is empty (reported in `notes` instead)."
457
+
"Why a manual run from the editor's Run button would be refused before it starts: no enabled trigger it can start from, more than one API trigger, or a selected trigger with no outgoing connection. The API run endpoints do not apply these checks. `null` when no manual-run issue is reported: the run can begin, only a chat trigger can start the workflow, or the graph is empty (reported in `notes` instead)."
458
458
),
459
459
notes: z.array(z.string()).describe('Advisory notes about the report itself.'),
'Non-fatal notes about blocks and edges that were normalized or dropped before persistence and, when `lint` has findings, one summary of them, so the findings are not lost to a caller that reads only `warnings`. Empty when there is nothing to report.'
3649
+
'Non-fatal notes about blocks and edges that were normalized or dropped before persistence and, when `lint` has findings, one line counting them by category, so a caller that reads only `warnings` still learns they exist. The findings themselves are in `lint`. Empty when there is nothing to report.'
expect(message).not.toContain('Fix these before continuing')
566
+
expect(message).toBe(
567
+
'The editor\'s Run button would fail: Start must be connected to other blocks to execute. Run starts from "Start" (start_trigger) ahead of any other trigger: connect it, or delete it if the workflow starts from another trigger. Runs that name their trigger are not affected.'
568
+
)
569
+
})
570
+
571
+
it('points at a Run-button refusal alone without calling it a lint issue',()=>{
message: 'Multiple API Trigger blocks found. Keep only one.',
584
+
},
585
+
})
586
+
expect(message).toBe(
587
+
'Workflow lint found issues. Fix these before continuing: Blocks with no incoming edge: "Fn" (function). The editor\'s Run button would fail: Multiple API Trigger blocks found. Keep only one.'
0 commit comments