Skip to content

Commit

Permalink
Fix #107
Browse files Browse the repository at this point in the history
Normalize spec before rendering in new httpdomain renderer
  • Loading branch information
sevdog committed Oct 15, 2024
1 parent e62e298 commit fa78d72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sphinxcontrib/openapi/renderers/_httpdomain.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import sphinx.util.logging as logging
import sphinx_mdinclude

from sphinxcontrib.openapi import _lib2to3 as lib2to3
from sphinxcontrib.openapi import _lib2to3 as lib2to3, utils
from sphinxcontrib.openapi.renderers import abc
from sphinxcontrib.openapi.schema_utils import example_from_schema

Expand Down Expand Up @@ -235,6 +235,7 @@ 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)
Expand Down

0 comments on commit fa78d72

Please sign in to comment.