Make name a property of Step.args instead of Step
[MAILPOET-4445]
This commit is contained in:
@ -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(),
|
||||
|
Reference in New Issue
Block a user