diff --git a/Oqtane.Server/Startup.cs b/Oqtane.Server/Startup.cs index e82ee135..cf8bf6a2 100644 --- a/Oqtane.Server/Startup.cs +++ b/Oqtane.Server/Startup.cs @@ -117,6 +117,10 @@ namespace Oqtane .AddOqtaneApplicationParts() // register any Controllers from custom modules .ConfigureOqtaneMvc(); // any additional configuration from IStart classes. + services.AddSwaggerGen(options => + { + options.CustomSchemaIds(type => type.ToString()); // Handle SchemaId already used for different type + }); services.TryAddSwagger(_useSwagger); }