Merge pull request #1820 from hishamco/swagger

Handle SchemaId in Swagger
This commit is contained in:
Shaun Walker
2021-11-18 08:54:57 -05:00
committed by GitHub

View File

@ -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);
}