documentation of the swagger this returning this error 500


Keywords:c# 


Question: 

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


1 Answer: 

Update your swagger config file (..\AppStart\SwaggerConfig.cs) to call c.UseFullTypeNameInSchemaIds():

         GlobalConfiguration.Configuration 
            .EnableSwagger(c =>
                {
                    //....
                    c.UseFullTypeNameInSchemaIds();  // <-- add this
                    //....
                })
            .EnableSwaggerUi(c =>
                {

                });