Skip to content

Commit

Permalink
docs(swagger): use enums as strings
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhck committed Jul 11, 2020
1 parent 26f0a21 commit 217f55b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Feature.Manager.Api/StartupExtensions/Swagger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public static void ConfigureSwagger(this IServiceCollection services)
{
services.AddSwaggerGen(c =>
{
c.DescribeAllEnumsAsStrings();
c.CustomOperationIds(e =>
{
var methodName = e.ActionDescriptor.RouteValues["action"];
Expand Down

0 comments on commit 217f55b

Please # to comment.