Generating WeKan OpenAPI docs does not work
@bentiss

Hi ! Do you have time to fix generating WeKan OpenAPI docs? I'm using Ubuntu 23.04 amd64 with XFCE desktop.

I tried to fix it at https://github.com/wekan/wekan/commit/97c6b6531502d09cbd6c267212651f3036338a11

But I still get this error message:

```
✓ Read source file!
Failed to parse the source OpenAPI document
```
diff --git a/openapi/generate_openapi.py b/openapi/generate_openapi.py
index 4b6aa9a27..684aebc63 100644
--- a/openapi/generate_openapi.py
+++ b/openapi/generate_openapi.py
@@ -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)
['openapi/generate_openapi.py']