Skip to content

Instantly share code, notes, and snippets.

@azimjohn
azimjohn / swagger-yaml-to-html.py
Last active December 4, 2018 06:20 — forked from oseiskar/swagger-yaml-to-html.py
Converts Swagger YAML to a static HTML document (needs: pip install PyYAML)
#!/usr/bin/python
"""
Usage:
python swagger-yaml-to-html.py < /path/to/api.yaml > doc.html
"""
import yaml, json, sys
TEMPLATE = """