Changes on packages

This commit is contained in:
2026-09-20 16:23:49 +02:00
parent 3f5e01f910
commit 4251d292e1
54 changed files with 68 additions and 66 deletions
+1
View File
@@ -19,6 +19,7 @@
<PackageReference Include="Microsoft.EntityFrameworkCore" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" />
<PackageReference Include="Microsoft.OpenApi" />
<PackageReference Include="Newtonsoft.Json" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" />
<PackageReference Include="OpenTelemetry" />
<PackageReference Include="OpenTelemetry.Api" />
@@ -125,7 +125,7 @@ public sealed class JwtBearerEventsHandler(
public override Task Challenge(JwtBearerChallengeContext context)
{
if (context.AuthenticateFailure is not null)
if (context.AuthenticateFailure != null)
logger.LogWarning("JWT challenge: {Error} - {Description}", context.Error, context.ErrorDescription);
return Task.CompletedTask;
}
@@ -8,7 +8,7 @@ public sealed class ValidationFilter<T>(IValidator<T> validator) : IEndpointFilt
{
var argument = context.Arguments.OfType<T>().FirstOrDefault();
if (argument is null)
if (argument == null)
return await next(context);
var result = await validator.ValidateAsync(argument, context.HttpContext.RequestAborted);
@@ -10,10 +10,10 @@ public sealed class UpdatePlayListRequestValidator : AbstractValidator<UpdatePla
RuleFor(x => x.NewName)
.NotEmpty()
.MaximumLength(50)
.When(x => x.NewName is not null);
.When(x => x.NewName != null);
RuleFor(x => x.NewDescription)
.MaximumLength(256)
.When(x => x.NewDescription is not null);
.When(x => x.NewDescription != null);
}
}
@@ -15,6 +15,7 @@
<PackageReference Include="Microsoft.Extensions.Hosting" />
<PackageReference Include="Microsoft.Extensions.Options.DataAnnotations" />
<PackageReference Include="MimeMapping" />
<PackageReference Include="Newtonsoft.Json" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" />
<PackageReference Include="SixLabors.ImageSharp" />
</ItemGroup>