Fixed automatic Swagger from docstrings
This commit is contained in:
parent
4918215ea7
commit
5bdb6764be
5 changed files with 42 additions and 22 deletions
|
|
@ -4,3 +4,6 @@ def get_docstring(obj):
|
|||
return ds.strip()
|
||||
else:
|
||||
return ""
|
||||
|
||||
def get_summary(obj):
|
||||
return get_docstring(obj).partition("\n")[0].strip()
|
||||
Loading…
Add table
Add a link
Reference in a new issue