Require root step by workflow schema
[MAILPOET-4629]
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user