diff --git a/workflow/spec/schema/serverless-workflow-schema-01.json b/workflow/spec/schema/serverless-workflow-schema-01.json index 92f8cab..2e1b0d9 100644 --- a/workflow/spec/schema/serverless-workflow-schema-01.json +++ b/workflow/spec/schema/serverless-workflow-schema-01.json @@ -724,8 +724,8 @@ } }, "default": { - "type": "string", - "description": "Specifies the name of the next state if there is no match for any choices value" + "description": "Next transition of the workflow if there is no match for any choices", + "$ref": "#/definitions/transition" } }, "if": { diff --git a/workflow/spec/spec.md b/workflow/spec/spec.md index b0a32a9..5baa5a0 100644 --- a/workflow/spec/spec.md +++ b/workflow/spec/spec.md @@ -768,7 +768,7 @@ actions execute, a transition to "next state" happens. | [filter](#Filter-Definition) |State data filter | object | yes | | [loop](#Loop-Definition) |State loop information | object | yes | | [onError](#Workflow-Error-Handling) |States error handling definitions | array | no | -| default |Name of the next state if there is no match for any choices value | string | yes (if end is set to false) | +| default |Next transition of the workflow if there is no match for any choices | object | yes (if end is set to false) |
Click to view JSON Schema @@ -824,8 +824,8 @@ actions execute, a transition to "next state" happens. } }, "default": { - "type": "string", - "description": "Specifies the name of the next state if there is no match for any choices value" + "description": "Next transition of the workflow if there is no match for any choices", + "$ref": "#/definitions/transition" } }, "if": {