Require root step by workflow schema

[MAILPOET-4629]
This commit is contained in:
Jan Jakes
2022-09-14 16:32:03 +02:00
committed by David Remer
parent d7b65bd980
commit 282c987d4f

View File

@@ -18,7 +18,7 @@ class WorkflowSchema {
public static function getStepsSchema(): ObjectSchema { public static function getStepsSchema(): ObjectSchema {
return Builder::object() return Builder::object()
->properties(['root' => self::getRootStepSchema()]) ->properties(['root' => self::getRootStepSchema()->required()])
->additionalProperties(self::getStepSchema()); ->additionalProperties(self::getStepSchema());
} }