Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
david-i-berry committed Jul 4, 2023
1 parent ee9e232 commit 475366a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sphinxcontrib/openapi/renderers/_httpdomain.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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", {}))
Expand Down

0 comments on commit 475366a

Please sign in to comment.