Swashbuckle.aspnetcore: How to set useFullTypeNameInSchemaIds?

Created on 24 Sep 2017  路  1Comment  路  Source: domaindrivendev/Swashbuckle.AspNetCore

Could you please help me where to set the useFullTypeNameInSchemaIds so that I can use classes with same names but in different namespaces?

Most helpful comment

solved it by adding

services.AddSwaggerGen(c =>
            {
                c.CustomSchemaIds((type) => type.FullName);
            });

>All comments

solved it by adding

services.AddSwaggerGen(c =>
            {
                c.CustomSchemaIds((type) => type.FullName);
            });
Was this page helpful?
0 / 5 - 0 ratings

Related issues

JoelAdamWeiss picture JoelAdamWeiss  路  4Comments

jluqueba picture jluqueba  路  4Comments

voroninp picture voroninp  路  3Comments

govin picture govin  路  3Comments

m-demydiuk picture m-demydiuk  路  3Comments