From 2a21e63bbf877a7fa4cbe4355e1857ef50a6a17c Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 25 Aug 2026 16:55:45 +0000 Subject: [PATCH] chore(deps): update dependency swashbuckle.aspnetcore to v10 (#352) --- api/src/ProposalSystem.Api/Program.cs | 12 +++--------- api/src/ProposalSystem.Api/ProposalSystem.Api.csproj | 2 +- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/api/src/ProposalSystem.Api/Program.cs b/api/src/ProposalSystem.Api/Program.cs index 0fac998..2281d41 100644 --- a/api/src/ProposalSystem.Api/Program.cs +++ b/api/src/ProposalSystem.Api/Program.cs @@ -8,7 +8,7 @@ using FluentValidation; using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.EntityFrameworkCore; using Microsoft.IdentityModel.Tokens; -using Microsoft.OpenApi.Models; +using Microsoft.OpenApi; using ProposalSystem.Api.Middleware; using ProposalSystem.Api.Services; using ProposalSystem.Application.Interfaces; @@ -186,15 +186,9 @@ builder.Services.AddSwaggerGen(options => In = ParameterLocation.Header, Description = "Cognito JWT access token", }); - options.AddSecurityRequirement(new OpenApiSecurityRequirement + options.AddSecurityRequirement(document => new OpenApiSecurityRequirement { - { - new OpenApiSecurityScheme - { - Reference = new OpenApiReference { Type = ReferenceType.SecurityScheme, Id = "Bearer" }, - }, - Array.Empty() - }, + [new OpenApiSecuritySchemeReference("Bearer", document)] = [], }); }); diff --git a/api/src/ProposalSystem.Api/ProposalSystem.Api.csproj b/api/src/ProposalSystem.Api/ProposalSystem.Api.csproj index fd4d8f7..8cdd143 100644 --- a/api/src/ProposalSystem.Api/ProposalSystem.Api.csproj +++ b/api/src/ProposalSystem.Api/ProposalSystem.Api.csproj @@ -30,7 +30,7 @@ - +