Is there a way to change the name of the models in the Swagger definition? Our classes end in "DTO" and we would prefer to strip that from the documentation.
You can by implementing a ISchemaFilter and removing DTO from the schema name
Or easier still, you can provide your own schema Id strategy with a call to _CustomSchemaIds_ as described here - https://github.com/domaindrivendev/Swashbuckle.AspNetCore#customize-schema-ids
Most helpful comment
Or easier still, you can provide your own schema Id strategy with a call to _CustomSchemaIds_ as described here - https://github.com/domaindrivendev/Swashbuckle.AspNetCore#customize-schema-ids