From 282c987d4f4f1b65ffe62f28e8ecc1fe85fc8c70 Mon Sep 17 00:00:00 2001 From: Jan Jakes Date: Wed, 14 Sep 2022 16:32:03 +0200 Subject: [PATCH] Require root step by workflow schema [MAILPOET-4629] --- mailpoet/lib/Automation/Engine/Validation/WorkflowSchema.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailpoet/lib/Automation/Engine/Validation/WorkflowSchema.php b/mailpoet/lib/Automation/Engine/Validation/WorkflowSchema.php index 09d8ca6c32..bbd31fb11c 100644 --- a/mailpoet/lib/Automation/Engine/Validation/WorkflowSchema.php +++ b/mailpoet/lib/Automation/Engine/Validation/WorkflowSchema.php @@ -18,7 +18,7 @@ class WorkflowSchema { public static function getStepsSchema(): ObjectSchema { return Builder::object() - ->properties(['root' => self::getRootStepSchema()]) + ->properties(['root' => self::getRootStepSchema()->required()]) ->additionalProperties(self::getStepSchema()); }