Skip to content

Commit

Permalink
fix(Sdk): Fixed the OAuth2AuthenticationSchemeDefinitionBase to make …
Browse files Browse the repository at this point in the history
…`request` optional

fix(Solution): Updated packages to latest version

Signed-off-by: Charles d'Avernas <[email protected]>
  • Loading branch information
cdavernas committed Oct 11, 2024
1 parent f16c887 commit 164c90d
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class ExternalResourceDefinitionBuilder
/// <summary>
/// Gets/sets the endpoint at which to get the defined resource
/// </summary>
protected virtual OneOf<EndpointDefinition, Uri>? Endpoint { get; set; }
protected virtual EndpointDefinition? Endpoint { get; set; }

/// <inheritdoc/>
public virtual IExternalResourceDefinitionBuilder WithName(string name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<VersionPrefix>1.0.0</VersionPrefix>
<VersionSuffix>alpha2.16</VersionSuffix>
<VersionSuffix>alpha3</VersionSuffix>
<AssemblyVersion>$(VersionPrefix)</AssemblyVersion>
<FileVersion>$(VersionPrefix)</FileVersion>
<NeutralLanguage>en</NeutralLanguage>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<VersionPrefix>1.0.0</VersionPrefix>
<VersionSuffix>alpha2.16</VersionSuffix>
<VersionSuffix>alpha3</VersionSuffix>
<AssemblyVersion>$(VersionPrefix)</AssemblyVersion>
<FileVersion>$(VersionPrefix)</FileVersion>
<NeutralLanguage>en</NeutralLanguage>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public abstract record OAuth2AuthenticationSchemeDefinitionBase
/// Gets/sets the configuration of the authentication request to perform
/// </summary>
[DataMember(Name = "request", Order = 4), JsonPropertyName("request"), JsonPropertyOrder(4), YamlMember(Alias = "request", Order = 4)]
public virtual OAuth2AuthenticationRequestDefinition Request { get; set; } = new();
public virtual OAuth2AuthenticationRequestDefinition? Request { get; set; }

/// <summary>
/// Gets/sets a list, if any, that contains valid issuers that will be used to check against the issuer of generated tokens
Expand Down
11 changes: 2 additions & 9 deletions src/ServerlessWorkflow.Sdk/Models/ErrorCatcherDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,7 @@ public record ErrorCatcherDefinition
public virtual RetryPolicyDefinition? Retry
{
get => this.RetryValue?.T1Value;
set
{
this.RetryValue = value;
}
set => this.RetryValue = value!;
}

/// <summary>
Expand All @@ -64,11 +61,7 @@ public virtual RetryPolicyDefinition? Retry
public virtual string? RetryReference
{
get => this.RetryValue?.T2Value;
set
{
ArgumentException.ThrowIfNullOrWhiteSpace(value);
this.RetryValue = value;
}
set => this.RetryValue = value!;
}

/// <summary>
Expand Down
10 changes: 5 additions & 5 deletions src/ServerlessWorkflow.Sdk/ServerlessWorkflow.Sdk.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<VersionPrefix>1.0.0</VersionPrefix>
<VersionSuffix>alpha2.16</VersionSuffix>
<VersionSuffix>alpha3</VersionSuffix>
<AssemblyVersion>$(VersionPrefix)</AssemblyVersion>
<FileVersion>$(VersionPrefix)</FileVersion>
<NeutralLanguage>en</NeutralLanguage>
Expand Down Expand Up @@ -33,10 +33,10 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="FluentValidation.DependencyInjectionExtensions" Version="11.9.2" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.0" />
<PackageReference Include="Neuroglia.Serialization.YamlDotNet" Version="4.15.4" />
<PackageReference Include="FluentValidation.DependencyInjectionExtensions" Version="11.10.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.1" />
<PackageReference Include="Neuroglia.Serialization.YamlDotNet" Version="4.15.6" />
<PackageReference Include="Semver" Version="2.3.0" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="FluentAssertions" Version="6.12.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="xunit" Version="2.9.0" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down

0 comments on commit 164c90d

Please sign in to comment.