Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Support for OpenAPI 3.0 #39

Open
samclam23 opened this issue Mar 16, 2022 · 3 comments
Open

No Support for OpenAPI 3.0 #39

samclam23 opened this issue Mar 16, 2022 · 3 comments

Comments

@samclam23
Copy link

Attempting to render an OpenAPI 3.0 specification partially works but is missing attributes like "server" which replaced "host" and "requestBody" which replaced "parameters.body" in the upgrade from swagger 2.0 to OpenAPI 3.0

@tgallant
Copy link

tgallant commented Apr 7, 2022

I was able to solve this by loading a newer version of redoc. You can do this by specifying redoc_uri in your conf.py file.

redoc_uri = 'https://unpkg.com/[email protected]/bundles/redoc.standalone.js'

There is a brief section on it in the docs https://sphinxcontrib-redoc.readthedocs.io/en/stable/

Screen Shot 2022-04-07 at 1 03 32 AM

@dylanh724
Copy link

dylanh724 commented Aug 29, 2024

Workaround that I can confirm works (for late 2024):

redoc_uri = 'https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js'

When you look at the redoc.js in build, it's actually using redoc 1.x (For some reason! The docs hint it's using a /latest cdn, where even then, it's an unexpected actually 2.x.x-rc)

Use redoc.ly instead == fix

@dylanh724
Copy link

@ikalnytskyi Hey bud, great pkg -- but are you still maintaining this? I saw this was opened in 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants