Skip to content

Commit

Permalink
Hopefully fix default swagger version
Browse files Browse the repository at this point in the history
  • Loading branch information
da3dsoul committed Nov 12, 2023
1 parent cd6af10 commit 3e240fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shoko.Server/API/APIExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ public static IServiceCollection AddAPI(this IServiceCollection services)

EmitEmptyEnumerableInsteadOfNullAttribute.MvcOptions = options;
})
.SetCompatibilityVersion(CompatibilityVersion.Version_3_0)
.AddNewtonsoftJson(json =>
{
json.SerializerSettings.MaxDepth = 10;
Expand All @@ -174,6 +173,7 @@ public static IServiceCollection AddAPI(this IServiceCollection services)

services.AddApiVersioning(o =>
{
o.DefaultApiVersion = new ApiVersion(3, 0);
o.ReportApiVersions = true;
o.AssumeDefaultVersionWhenUnspecified = true;
o.ApiVersionReader = ApiVersionReader.Combine(
Expand Down

0 comments on commit 3e240fa

Please sign in to comment.