Skip to content

Commit ab7f317

Browse files
committed
fix(SDK): Fixed the FunctionDefinitionValidator, which was attempting to resolve an authentication reference against an event definition (instead of resolving it against an authentication definition)
1 parent 4110c8d commit ab7f317

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/ServerlessWorkflow.Sdk/ServerlessWorkflow.Sdk.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
<TargetFramework>net6.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<NeutralLanguage>en</NeutralLanguage>
7-
<AssemblyVersion>0.8.1.7</AssemblyVersion>
8-
<FileVersion>0.8.1.7</FileVersion>
9-
<Version>0.8.1.7</Version>
7+
<AssemblyVersion>0.8.1.8</AssemblyVersion>
8+
<FileVersion>0.8.1.8</FileVersion>
9+
<Version>0.8.1.8</Version>
1010
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1111
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
1212
<PackageLicenseFile>LICENSE</PackageLicenseFile>

src/ServerlessWorkflow.Sdk/Services/Validation/FunctionDefinitionValidator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public FunctionDefinitionValidator(WorkflowDefinition workflow)
5959
/// <returns>A boolean indicating whether or not the specified <see cref="AuthenticationDefinition"/> exists</returns>
6060
protected virtual bool ReferenceExistingAuthentication(string authenticationName)
6161
{
62-
return this.Workflow.TryGetEvent(authenticationName, out _);
62+
return this.Workflow.TryGetAuthentication(authenticationName, out _);
6363
}
6464

6565
}

0 commit comments

Comments
 (0)