Commit 193a28de authored by Goran Pavlovic's avatar Goran Pavlovic
Browse files

Merge branch 'Fix_pyyaml_version' of...

Merge branch 'Fix_pyyaml_version' of https://github.com/Ekkertan/aiohttp-swagger into Ekkertan-Fix_pyyaml_version
parents 2f8622ce 8f114406
......@@ -41,10 +41,11 @@ def _extract_swagger_docs(end_point_doc, method="get"):
def _build_doc_from_func_doc(route):
out = {}
if isclass(route.handler) and issubclass(route.handler, web.View) and route.method == METH_ANY:
is_method_allowed = route.method == METH_ANY or route.method in METH_ALL
if isclass(route.handler) and issubclass(route.handler, web.View) and is_method_allowed:
method_names = {
attr for attr in dir(route.handler) \
attr for attr in dir(route.handler)
if attr.upper() in METH_ALL
}
for method_name in method_names:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment