Skip to content

Commit 108de61

Browse files
authored
Normalize spec before rendering in new httpdomain renderer
1 parent e62e298 commit 108de61

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sphinxcontrib/openapi/renderers/_httpdomain.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import sphinx.util.logging as logging
1414
import sphinx_mdinclude
1515

16-
from sphinxcontrib.openapi import _lib2to3 as lib2to3
16+
from sphinxcontrib.openapi import _lib2to3 as lib2to3, utils
1717
from sphinxcontrib.openapi.renderers import abc
1818
from sphinxcontrib.openapi.schema_utils import example_from_schema
1919

@@ -235,6 +235,7 @@ def __init__(self, state, options):
235235

236236
def render_restructuredtext_markup(self, spec):
237237
"""Spec render entry point."""
238+
utils.normalize_spec(spec, **self.options)
238239

239240
if spec.get("swagger") == "2.0":
240241
spec = lib2to3.convert(spec)

0 commit comments

Comments
 (0)