mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
openapi: also ignores ThrowStatement
This gives an error in the resulting file, which makes it not OpenAPI compatible (not yaml actually). Fixes #4917 Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
parent
0225eefa66
commit
d7243bba77
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