Merge pull request #1820 from hishamco/swagger
Handle SchemaId in Swagger
This commit is contained in:
commit
804b61ff95
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user