From 018dabb0d872701125216823a16909462aa7a5df Mon Sep 17 00:00:00 2001 From: DamianEdwards Date: Tue, 1 Oct 2019 16:21:38 -0700 Subject: [PATCH] Disable warning for obsolete Swashbuckle method --- src/BackEnd/Startup.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/BackEnd/Startup.cs b/src/BackEnd/Startup.cs index 83410e71..c32633ef 100644 --- a/src/BackEnd/Startup.cs +++ b/src/BackEnd/Startup.cs @@ -49,7 +49,10 @@ public void ConfigureServices(IServiceCollection services) services.AddSwaggerGen(options => { options.SwaggerDoc("v1", new OpenApiInfo { Title = "Conference Planner API", Version = "v1" }); +#pragma warning disable CS0618 // Type or member is obsolete + // The following method is marked obsolete right now but is required until Swashbuckle supports System.Text.Json options.DescribeAllEnumsAsStrings(); +#pragma warning restore CS0618 }); }