Fixed automatic Swagger from docstrings

This commit is contained in:
jtc42 2020-01-02 23:37:28 +00:00
parent 4918215ea7
commit 5bdb6764be
5 changed files with 42 additions and 22 deletions

View file

@ -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()