Skip to content

Commit f495b22

Browse files
authored
chore: updated Koalesce to new packages (#68)
1 parent 0765332 commit f495b22

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

Directory.Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
<ItemGroup Label="API Gateway">
3535
<PackageVersion Include="Ocelot" Version="24.1.0" />
36-
<PackageVersion Include="Koalesce.OpenAPI" Version="1.0.0-alpha.12" />
36+
<PackageVersion Include="Koalesce" Version="1.0.0-beta.1" />
3737
</ItemGroup>
3838

3939
<ItemGroup Label="Event Sourcing and Messaging">

src/Crosscutting/EcommerceDDD.ApiGateway/EcommerceDDD.ApiGateway.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</PropertyGroup>
1414

1515
<ItemGroup>
16-
<PackageReference Include="Koalesce.OpenAPI" />
16+
<PackageReference Include="Koalesce" />
1717
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" />
1818
<PackageReference Include="Ocelot" />
1919
</ItemGroup>

src/Crosscutting/EcommerceDDD.ApiGateway/GlobalUsings.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
global using Microsoft.Extensions.Options;
44
global using Ocelot.DependencyInjection;
55
global using Ocelot.Middleware;
6-
global using Koalesce.Core.Extensions;
7-
global using Koalesce.OpenAPI.Extensions;
6+
global using Koalesce.Extensions;
7+
global using Koalesce.Options;

src/Crosscutting/EcommerceDDD.ApiGateway/Program.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@
4141

4242

4343
// Register Koalesce
44-
services.AddKoalesce(builder.Configuration)
45-
.ForOpenAPI();
44+
services.AddKoalesce(builder.Configuration);
4645

4746
// Build the app
4847
var app = builder.Build();
@@ -69,7 +68,7 @@
6968
// Enable Swagger UI
7069
app.UseSwaggerUI(c =>
7170
{
72-
c.SwaggerEndpoint(koalesceOptions.MergedDocumentPath, koalesceOptions.Title);
71+
c.SwaggerEndpoint(koalesceOptions.MergedEndpoint, koalesceOptions.Title);
7372
});
7473
}
7574

src/Crosscutting/EcommerceDDD.ApiGateway/appsettings.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"Koalesce": {
1313
"OpenApiVersion": "3.0.1",
1414
"Title": "Ecommerce DDD API Gateway",
15-
"Sources": [
15+
"Sources": [
1616
{
1717
"Url": "http://ecommerceddd-identityserver/swagger/v2/swagger.json",
1818
"ExcludePaths": [
@@ -52,9 +52,8 @@
5252
"VirtualPrefix": "/orderProcessing"
5353
}
5454
],
55-
"MergedDocumentPath": "/swagger/v2/apigateway.yaml",
55+
"MergedEndpoint": "/swagger/v2/apigateway.yaml",
5656
"ApiGatewayBaseUrl": "http://localhost:5000",
57-
"SchemaConflictPattern": "{Prefix}{SchemaName}",
5857
"Cache": {
5958
"MinExpirationSeconds": 10,
6059
"SlidingExpirationSeconds": 10

0 commit comments

Comments
 (0)