InvalidOperationException:冲突的schemaIds:为类型BTBTems.DataModel.Ticket.ChamadoDM和BTBTems.DataModel.Chamado.ChamadoDM检测到相同的schemaId。有关解决方法,请参阅配置设置 - “UseFullTypeNameInSchemaIds”或“CustomSchemaIds”
答案 0 :(得分:0)
更新您的swagger配置文件( .. \ AppStart \ SwaggerConfig.cs )以致电c.UseFullTypeNameInSchemaIds()
:
GlobalConfiguration.Configuration
.EnableSwagger(c =>
{
//....
c.UseFullTypeNameInSchemaIds(); // <-- add this
//....
})
.EnableSwaggerUi(c =>
{
});