Skip to content

Instantly share code, notes, and snippets.

@ankitvijay
Created July 10, 2020 22:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ankitvijay/c571b4f1b42306891e169c3c643afdcb to your computer and use it in GitHub Desktop.
Save ankitvijay/c571b4f1b42306891e169c3c643afdcb to your computer and use it in GitHub Desktop.
Part 4 - Startup.cs - 3
services.AddSwaggerGen(options =>
{
options.SwaggerDoc("v1", new OpenApiInfo {Title = "Enumeration NSwagger Sample", Version = "v1"});
options.SchemaFilter<EnumerationToEnumSchemaFilter>();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment