We have an ASP.NET MVC Core application with regular MVC controllers. In addition, we have a subfolder within the Controllers folder called "API", containing a small number of API controllers.
We're using the .IncludeXmlComments method within .AddSwaggerGen to pick up the XML documentation within our project.
However, it's also picking up the XML for all our regular controllers too.
Is there a way to filter out the 'regular' controllers, or otherwise select only API controllers for inclusion in the swagger documentation?