a fork of iceshrimp.net but a tweaked frontend to my personal liking. waow
fediverse social-media social iceshrimp fedi
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[backend] Temporary workaround for OpenAPI v3.1 Swashbuckle issue

+6 -1
+6 -1
Iceshrimp.Backend/Core/Extensions/WebApplicationExtensions.cs
··· 50 50 public IApplicationBuilder UseOpenApiWithOptions() 51 51 { 52 52 app.MapSwagger("/openapi/{documentName}.{extension:regex(^(json|ya?ml)$)}", 53 - o => o.OpenApiVersion = OpenApiSpecVersion.OpenApi3_1) 53 + o => 54 + { 55 + // Workaround for https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/3649 56 + // Switch to 3_1 when fixed 57 + o.OpenApiVersion = OpenApiSpecVersion.OpenApi3_0; 58 + }) 54 59 .CacheOutput(p => p.Expire(TimeSpan.FromHours(12))); 55 60 56 61 app.UseSwaggerUI(options =>