I have integrated swagger in WebApi 2 application. It works fine when application has single controller. When I added second controller in the application. I got following
I understand this is an old thread. And im straying away from the OP Issue slightly. However i recently had this issue and spent a long time trying to figure out what was happening (this page is top of google for the issue). and it may help other from going through hours of pain.
my controllers all extended a base controller and i stupidly had a public function instead of a protected function. So swagger was picking up the public function as a duplicate.
Hope this helps others from spending unnecessary time.