Swashbuckle Error - "Conflicting schemaIds: Duplicate schemaIds"

Story by Abhilash on ASP.NET MVC


Swashbuckle helps to seamlessly adds a Swagger to WebApi projects combining ApiExplorer and Swagger/swagger-ui to provide a rich discovery, documentation and playground experience to your API consumers.

Sometimes, you might get unexpected error as below -

"500: {"Message: "An error has occured", "ExceptionMessage": "Conflicting schemaIds: Duplicate schemaIds detected for types ABC and XYZ"


This usually happens when you have 2 Class of same name but under different namespace. To fix this,

  • Open SwaggerConfig.cs
  • uncomment - c.UseFullTypeNameInSchemaIds() (line #134)

That's it. Hope this helps.

comments powered by Disqus

Related Story   →

Fix: HTML5 Video not playing when deployed to azure

A post on how to playback HTML5 video when published to Azure.