Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am joaopi on github.
  • I am joaopires (https://keybase.io/joaopires) on keybase.
  • I have a public key ASB0ZqlBcXmhEde3ERdHPrZpp4z80GPAuVr-u6NV0aLyRgo

To claim this, I am signing this object:

@joaopi
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
{