Skip to content

Instantly share code, notes, and snippets.


Keybase proof

I hereby claim:

  • I am joaopi on github.
  • I am joaopires ( on keybase.
  • I have a public key ASB0ZqlBcXmhEde3ERdHPrZpp4z80GPAuVr-u6NV0aLyRgo

To claim this, I am signing this object:

joaopi / SwaggerGenOptionsExtensions.cs
Last active Nov 18, 2019
Workaround for Swashbuckle SwaggerGenOptions to register enum schemas in Swagger
View SwaggerGenOptionsExtensions.cs
using System;
using System.Linq;
using System.Reflection;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.OpenApi.Any;
using Microsoft.OpenApi.Models;
using Swashbuckle.AspNetCore.SwaggerGen;
namespace Example