From a77656cd2fdb127fe8cb5e0e104650d429b8c4f7 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bianchi Date: Fri, 22 Nov 2024 10:33:38 +0100 Subject: [PATCH] fix(Validation): fixed task `exit` flow directive validation Signed-off-by: Jean-Baptiste Bianchi --- .../ServerlessWorkflow.Sdk.Builders.csproj | 2 +- src/ServerlessWorkflow.Sdk.IO/ServerlessWorkflow.Sdk.IO.csproj | 2 +- src/ServerlessWorkflow.Sdk/ServerlessWorkflow.Sdk.csproj | 2 +- .../Validation/TaskDefinitionValidator.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ServerlessWorkflow.Sdk.Builders/ServerlessWorkflow.Sdk.Builders.csproj b/src/ServerlessWorkflow.Sdk.Builders/ServerlessWorkflow.Sdk.Builders.csproj index 1e8dc94..d3346f9 100644 --- a/src/ServerlessWorkflow.Sdk.Builders/ServerlessWorkflow.Sdk.Builders.csproj +++ b/src/ServerlessWorkflow.Sdk.Builders/ServerlessWorkflow.Sdk.Builders.csproj @@ -5,7 +5,7 @@ enable enable 1.0.0 - alpha5.2 + alpha5.3 $(VersionPrefix) $(VersionPrefix) en diff --git a/src/ServerlessWorkflow.Sdk.IO/ServerlessWorkflow.Sdk.IO.csproj b/src/ServerlessWorkflow.Sdk.IO/ServerlessWorkflow.Sdk.IO.csproj index 497c6eb..6405b4e 100644 --- a/src/ServerlessWorkflow.Sdk.IO/ServerlessWorkflow.Sdk.IO.csproj +++ b/src/ServerlessWorkflow.Sdk.IO/ServerlessWorkflow.Sdk.IO.csproj @@ -5,7 +5,7 @@ enable enable 1.0.0 - alpha5.2 + alpha5.3 $(VersionPrefix) $(VersionPrefix) en diff --git a/src/ServerlessWorkflow.Sdk/ServerlessWorkflow.Sdk.csproj b/src/ServerlessWorkflow.Sdk/ServerlessWorkflow.Sdk.csproj index c0de817..d284efe 100644 --- a/src/ServerlessWorkflow.Sdk/ServerlessWorkflow.Sdk.csproj +++ b/src/ServerlessWorkflow.Sdk/ServerlessWorkflow.Sdk.csproj @@ -5,7 +5,7 @@ enable enable 1.0.0 - alpha5.2 + alpha5.3 $(VersionPrefix) $(VersionPrefix) en diff --git a/src/ServerlessWorkflow.Sdk/Validation/TaskDefinitionValidator.cs b/src/ServerlessWorkflow.Sdk/Validation/TaskDefinitionValidator.cs index 6383a31..1d93519 100644 --- a/src/ServerlessWorkflow.Sdk/Validation/TaskDefinitionValidator.cs +++ b/src/ServerlessWorkflow.Sdk/Validation/TaskDefinitionValidator.cs @@ -102,7 +102,7 @@ protected virtual bool NotAFlowDirective(TaskDefinition task) { return task.Then switch { - null or "" or FlowDirective.Continue or FlowDirective.End or FlowDirective.End => false, + null or "" or FlowDirective.Continue or FlowDirective.End or FlowDirective.Exit => false, _ => true }; }