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
commit 804b61ff95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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