mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04:00
Merge pull request #4918 from bentiss/fix-docs
openapi: also ignores ThrowStatement
This commit is contained in:
commit
4790d31ff7
1 changed files with 1 additions and 3 deletions
|
@ -67,11 +67,9 @@ def get_req_body_elems(obj, elems):
|
|||
get_req_body_elems(obj.right, elems)
|
||||
elif obj.type in ('ReturnStatement', 'UnaryExpression'):
|
||||
get_req_body_elems(obj.argument, elems)
|
||||
elif obj.type == 'Literal':
|
||||
pass
|
||||
elif obj.type == 'Identifier':
|
||||
return obj.name
|
||||
elif obj.type == 'FunctionDeclaration':
|
||||
elif obj.type in ['Literal', 'FunctionDeclaration', 'ThrowStatement']:
|
||||
pass
|
||||
else:
|
||||
print(obj)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue