cryty
cryty

Reputation: 1

documentation of the swagger this returning this error 500

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

Answers (1)

Ray
Ray

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

Related Questions