Make name a property of Step.args instead of Step

[MAILPOET-4445]
This commit is contained in:
David Remer
2022-08-12 11:50:45 +03:00
committed by Veljko V
parent 2a09646e8d
commit 24849afb7a
16 changed files with 35 additions and 80 deletions

View File

@ -31,7 +31,6 @@ class WorkflowsPutEndpoint extends Endpoint {
public static function getRequestSchema(): array {
$step = Builder::object([
'id' => Builder::string()->required(),
'name' => Builder::string()->nullable(),
'type' => Builder::string()->required(),
'key' => Builder::string()->required(),
'args' => Builder::object(),
@ -56,7 +55,6 @@ class WorkflowsPutEndpoint extends Endpoint {
'steps' => array_map(function (Step $step) {
return [
'id' => $step->getId(),
'name' => $step->getName(),
'type' => $step->getType(),
'key' => $step->getKey(),
'next_step_id' => $step->getNextStepId(),