Skip to content

Commit fa78d72

Browse files
committed
Normalize spec before rendering in new httpdomain renderer
1 parent e62e298 commit fa78d72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sphinxcontrib/openapi/renderers/_httpdomain.py

+2-1
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)