mirror of
https://github.com/Sea-Haven-Industries/proposal-system.git
synced 2026-10-02 14:13:13 +00:00
chore(deps): update dependency swashbuckle.aspnetcore to v10 (#352)
This commit is contained in:
parent
9cb9952a39
commit
2a21e63bbf
2 changed files with 4 additions and 10 deletions
|
|
@ -8,7 +8,7 @@ using FluentValidation;
|
||||||
using Microsoft.AspNetCore.Authentication.JwtBearer;
|
using Microsoft.AspNetCore.Authentication.JwtBearer;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.IdentityModel.Tokens;
|
using Microsoft.IdentityModel.Tokens;
|
||||||
using Microsoft.OpenApi.Models;
|
using Microsoft.OpenApi;
|
||||||
using ProposalSystem.Api.Middleware;
|
using ProposalSystem.Api.Middleware;
|
||||||
using ProposalSystem.Api.Services;
|
using ProposalSystem.Api.Services;
|
||||||
using ProposalSystem.Application.Interfaces;
|
using ProposalSystem.Application.Interfaces;
|
||||||
|
|
@ -186,15 +186,9 @@ builder.Services.AddSwaggerGen(options =>
|
||||||
In = ParameterLocation.Header,
|
In = ParameterLocation.Header,
|
||||||
Description = "Cognito JWT access token",
|
Description = "Cognito JWT access token",
|
||||||
});
|
});
|
||||||
options.AddSecurityRequirement(new OpenApiSecurityRequirement
|
options.AddSecurityRequirement(document => new OpenApiSecurityRequirement
|
||||||
{
|
{
|
||||||
{
|
[new OpenApiSecuritySchemeReference("Bearer", document)] = [],
|
||||||
new OpenApiSecurityScheme
|
|
||||||
{
|
|
||||||
Reference = new OpenApiReference { Type = ReferenceType.SecurityScheme, Id = "Bearer" },
|
|
||||||
},
|
|
||||||
Array.Empty<string>()
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
<PackageReference Include="FluentValidation.AspNetCore" Version="11.3.1" />
|
<PackageReference Include="FluentValidation.AspNetCore" Version="11.3.1" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.30" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.30" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" Version="8.0.30" />
|
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" Version="8.0.30" />
|
||||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.9.0" />
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="10.2.3" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue