Handle SchemaId in Swagger
This commit is contained in:
parent
b87b0489e9
commit
d431c607ba
|
@ -117,6 +117,10 @@ namespace Oqtane
|
||||||
.AddOqtaneApplicationParts() // register any Controllers from custom modules
|
.AddOqtaneApplicationParts() // register any Controllers from custom modules
|
||||||
.ConfigureOqtaneMvc(); // any additional configuration from IStart classes.
|
.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);
|
services.TryAddSwagger(_useSwagger);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user