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

Commit

Permalink
Disable warning for obsolete Swashbuckle method
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianEdwards committed Oct 1, 2019
1 parent 82e64d6 commit 018dabb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/BackEnd/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
}

Expand Down

0 comments on commit 018dabb

Please sign in to comment.