Merge pull request #3672 from bentiss/fix-docs

Fix openapi docs generation
This commit is contained in:
Lauri Ojansivu 2021-03-26 22:54:08 +02:00 committed by GitHub
commit 9df5a0f530
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 21512 additions and 6 deletions

View file

@ -1,6 +1,7 @@
#!/bin/env python3
import argparse
import esprima
import json
import logging
import os
@ -14,7 +15,7 @@ err_context = 3
def get_req_body_elems(obj, elems):
if obj.type == 'FunctionExpression':
if obj.type in ['FunctionExpression', 'ArrowFunctionExpression']:
get_req_body_elems(obj.body, elems)
elif obj.type == 'BlockStatement':
for s in obj.body:

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -4,6 +4,11 @@
sudo apt-get install python3-pip
sudo pip3 install -U setuptools wheel
sudo npm install -g api2html
mkdir -p ~/python
cd ~/python
git clone --depth 1 -b master https://github.com/Kronuz/esprima-python
cd ~/python/esprima-python
sudo python3 setup.py install --record files.txt
cd ~/repos/wekan
mkdir -p public/api