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

Download button is downloading HTML not JSON #594

Closed
karlismelderis opened this issue Aug 6, 2018 · 3 comments
Closed

Download button is downloading HTML not JSON #594

karlismelderis opened this issue Aug 6, 2018 · 3 comments

Comments

@karlismelderis
Copy link

Noticed that "Download" button is just providing same API spec HTML file.
I think it makes more sense to provide API spec in JSON/YAML format.

@RomanHotsiy
Copy link
Member

Which version of ReDoc do you use?
Could you share a minimal reproducible example?

@karlismelderis
Copy link
Author

index.html.zip
I used redoc-cli@^0.6.1 and redoc@2.0.0-alpha.30 to get reported behaviour

But if I run redoc@1.22.0 it I got proper download.

Unfortunately I lost record of which tool I used and got JSON in download option.

@RomanHotsiy
Copy link
Member

Thanks for details.
I can reproduce it now.

Will be fixed in the upcoming release

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

No branches or pull requests

2 participants