Skip to content
This repository was archived by the owner on Jul 10, 2024. It is now read-only.

Commit 1281e49

Browse files
committed
Disable warning for obsolete Swashbuckle method
1 parent 184adb5 commit 1281e49

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/BackEnd/Startup.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ public void ConfigureServices(IServiceCollection services)
4949
services.AddSwaggerGen(options =>
5050
{
5151
options.SwaggerDoc("v1", new OpenApiInfo { Title = "Conference Planner API", Version = "v1" });
52+
#pragma warning disable CS0618 // Type or member is obsolete
53+
// The following method is marked obsolete right now but is required until Swashbuckle supports System.Text.Json
5254
options.DescribeAllEnumsAsStrings();
55+
#pragma warning restore CS0618
5356
});
5457
}
5558

0 commit comments

Comments
 (0)