Reputation: 1
InvalidOperationException: Conflicting schemaIds: Identical schemaIds detected for types BTBTems.DataModel.Ticket.ChamadoDM and BTBTems.DataModel.Chamado.ChamadoDM. See config settings - "UseFullTypeNameInSchemaIds" or "CustomSchemaIds" for a workaround
Upvotes: 0
Views: 1498
Reputation: 192406
Update your swagger config file (..\AppStart\SwaggerConfig.cs) to call c.UseFullTypeNameInSchemaIds()
:
GlobalConfiguration.Configuration
.EnableSwagger(c =>
{
//....
c.UseFullTypeNameInSchemaIds(); // <-- add this
//....
})
.EnableSwaggerUi(c =>
{
});
Upvotes: 2