Skip to content

Commit

Permalink
Fix NSwag build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahStolk committed Nov 28, 2023
1 parent d6867db commit bafc43d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public static void AddSwaggerDocument(this WebApplicationBuilder builder, string
};
config.DocumentName = apiNamespace.ToUpper();
config.OperationProcessors.Insert(0, new ApiOperationProcessor(apiNamespace));
config.SchemaType = SchemaType.OpenApi3;
config.GenerateEnumMappingDescription = true;
config.SchemaSettings.SchemaType = SchemaType.OpenApi3;
config.SchemaSettings.GenerateEnumMappingDescription = true;
});
}
}
2 changes: 1 addition & 1 deletion src/DevilDaggersInfo.Web.Server/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
});

app.UseOpenApi();
app.UseSwaggerUi3();
app.UseSwaggerUi();

if (!app.Environment.IsDevelopment())
{
Expand Down

0 comments on commit bafc43d

Please sign in to comment.