Skip to content

Commit

Permalink
Validate subworkflows steps too
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez committed Oct 7, 2022
1 parent 0d49a9a commit 4829c80
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class WorkflowValidationService implements WorkflowValidator {

export function collectStepErrorDiagnostics(workflowDocument: WorkflowDocument): Diagnostic[] {
const diagnostics: Diagnostic[] = [];
const steps = workflowDocument.nodeManager.getStepNodes();
const steps = workflowDocument.nodeManager.getStepNodes(true);
steps.forEach((step) => {
const errors = step.properties.find((p) => p.keyNode.value === "errors");
if (errors) {
Expand All @@ -36,7 +36,7 @@ export function collectStepErrorDiagnostics(workflowDocument: WorkflowDocument):

export function collectToolDiagnostics(workflowDocument: WorkflowDocument): Diagnostic[] {
const diagnostics: Diagnostic[] = [];
const steps = workflowDocument.nodeManager.getStepNodes();
const steps = workflowDocument.nodeManager.getStepNodes(true);
steps.forEach((step) => {
const tool_id = step.properties.find((p) => p.keyNode.value === "tool_id");
if (tool_id) {
Expand Down

0 comments on commit 4829c80

Please sign in to comment.