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 }); }