Install dependencies.
cd dita_generation
pip3 install openapi
pip3 install six
pip3 install jinja2
Generate DITA files based on a Swagger spec in JSON.
python3 main.py test_input.json ./tmp
For this to work the swagger spec endpoints must contain the
x-dita-path
key which specifies the name of the DITA file generated (see example).