aiohttp-swagger
                                
                                 aiohttp-swagger copied to clipboard
                                
                                    aiohttp-swagger copied to clipboard
                            
                            
                            
                        Bug in helpers/builders.py
Overview: if we declare route with class based view with method different from METH_ANY ('*') our endpoint doesn't show up
There is a bug in helpers/builders.py:43:
if issubclass(route.handler, web.View) and route.method == METH_ANY:
STR:
- Create route with class based view:
app.router.add_route( method='DELETE',
                                  path='/some_path/',
                                  handler=SubClassOf_web_View,
                                  name='some_name')
- Create doc string for DELETE method:
class SubClassOf_web_View(web.View):
    async def delete(self):
       """
       ---
       valid doc string
       """
Excpected: declared endpoint shows up on api page
Result: declared endpoint doesn't show up on api page
Solution: replace
if issubclass(route.handler, web.View) and route.method == METH_ANY: 
with
if issubclass(route.handler, web.View):