diff --git a/sphinxcontrib/openapi/renderers/_httpdomain.py b/sphinxcontrib/openapi/renderers/_httpdomain.py index fe511bb..3a6145b 100644 --- a/sphinxcontrib/openapi/renderers/_httpdomain.py +++ b/sphinxcontrib/openapi/renderers/_httpdomain.py @@ -17,6 +17,8 @@ from sphinxcontrib.openapi.renderers import abc from sphinxcontrib.openapi.schema_utils import example_from_schema +from .. import utils + CaseInsensitiveDict = requests.structures.CaseInsensitiveDict @@ -234,6 +236,8 @@ def __init__(self, state, options): def render_restructuredtext_markup(self, spec): """Spec render entry point.""" + utils.normalize_spec(spec, **self.options) + if spec.get("swagger") == "2.0": spec = lib2to3.convert(spec) yield from self.render_paths(spec.get("paths", {}))