From 475366a502ea5a003a85bd8132ff02a70c4d45c8 Mon Sep 17 00:00:00 2001 From: david-i-berry Date: Tue, 4 Jul 2023 14:42:52 +0200 Subject: [PATCH] Fix for https://github.com/sphinx-contrib/openapi/issues/107 --- sphinxcontrib/openapi/renderers/_httpdomain.py | 4 ++++ 1 file changed, 4 insertions(+) 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", {}))