Width Override Fixes + Swagger (again) (#3034)

This commit is contained in:
Joe Milazzo 2024-07-01 15:02:17 -05:00 committed by GitHub
parent 2326c9f437
commit 8cc1edc38d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 118 additions and 2161 deletions

View file

@ -137,7 +137,7 @@ public class Startup
{
c.SwaggerDoc("v1", new OpenApiInfo
{
Version = "2.0",
Version = "3.1.0",
Title = "Kavita",
Description = $"Kavita provides a set of APIs that are authenticated by JWT. JWT token can be copied from local storage. Assume all fields of a payload are required. Built against v{BuildInfo.Version.ToString()}",
License = new OpenApiLicense
@ -176,7 +176,7 @@ public class Startup
Url = "{protocol}://{hostpath}",
Variables = new Dictionary<string, OpenApiServerVariable>
{
{ "protocol", new OpenApiServerVariable { Default = "http", Enum = new List<string> { "http", "https" } } },
{ "protocol", new OpenApiServerVariable { Default = "http", Enum = ["http", "https"]} },
{ "hostpath", new OpenApiServerVariable { Default = "localhost:5000" } }
}
});
@ -207,7 +207,7 @@ public class Startup
.UseSimpleAssemblyNameTypeSerializer()
.UseRecommendedSerializerSettings()
.UseInMemoryStorage());
//.UseSQLiteStorage("config/Hangfire.db")); // UseSQLiteStorage - SQLite has some issues around resuming jobs when aborted (and locking can cause high utilization)
//.UseSQLiteStorage("config/Hangfire.db")); // UseSQLiteStorage - SQLite has some issues around resuming jobs when aborted (and locking can cause high utilization) (NOTE: There is code to clear jobs on startup a redditor gave me)
// Add the processing server as IHostedService
services.AddHangfireServer(options =>