Skip to content

Commit a3fe0b2

Browse files
committed
fix(Sdk): Fixed the CallTaskDefinitionValidator to not check the inline definition of cataloged functions (which contain an '@' character)
Signed-off-by: Charles d'Avernas <charles.davernas@neuroglia.io>
1 parent 007c6df commit a3fe0b2

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/ServerlessWorkflow.Sdk.Builders/ServerlessWorkflow.Sdk.Builders.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<VersionPrefix>1.0.0</VersionPrefix>
8-
<VersionSuffix>alpha3</VersionSuffix>
8+
<VersionSuffix>alpha3.1</VersionSuffix>
99
<AssemblyVersion>$(VersionPrefix)</AssemblyVersion>
1010
<FileVersion>$(VersionPrefix)</FileVersion>
1111
<NeutralLanguage>en</NeutralLanguage>

src/ServerlessWorkflow.Sdk.IO/ServerlessWorkflow.Sdk.IO.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<VersionPrefix>1.0.0</VersionPrefix>
8-
<VersionSuffix>alpha3</VersionSuffix>
8+
<VersionSuffix>alpha3.1</VersionSuffix>
99
<AssemblyVersion>$(VersionPrefix)</AssemblyVersion>
1010
<FileVersion>$(VersionPrefix)</FileVersion>
1111
<NeutralLanguage>en</NeutralLanguage>

src/ServerlessWorkflow.Sdk/ServerlessWorkflow.Sdk.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<VersionPrefix>1.0.0</VersionPrefix>
8-
<VersionSuffix>alpha3</VersionSuffix>
8+
<VersionSuffix>alpha3.1</VersionSuffix>
99
<AssemblyVersion>$(VersionPrefix)</AssemblyVersion>
1010
<FileVersion>$(VersionPrefix)</FileVersion>
1111
<NeutralLanguage>en</NeutralLanguage>

src/ServerlessWorkflow.Sdk/Validation/CallTaskDefinitionValidator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public CallTaskDefinitionValidator(IServiceProvider serviceProvider, ComponentDe
3535
this.Components = components;
3636
this.RuleFor(c => c.Call)
3737
.Must(ReferenceAnExistingFunction)
38-
.When(c => !Uri.TryCreate(c.Call, UriKind.Absolute, out _))
38+
.When(c => !Uri.TryCreate(c.Call, UriKind.Absolute, out _) || c.Call.Contains('@'))
3939
.WithMessage(ValidationErrors.UndefinedFunction);
4040
this.When(c => c.Call == Function.AsyncApi, () =>
4141
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy