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

Generate download link for specs defined by an object #289

Closed
seanpk opened this issue Jun 27, 2017 · 0 comments
Closed

Generate download link for specs defined by an object #289

seanpk opened this issue Jun 27, 2017 · 0 comments

Comments

@seanpk
Copy link

seanpk commented Jun 27, 2017

If I make use of the "advanced feature" to provide an object to Redoc.init I lose the "Download OpenAPI specification: Download" download button.

e.g.:

<redoc></redoc>
<script>
  var spec = { /* my spec as an object */ };
  Redoc.init(spec);
</script>

ReDoc should still provide the Download link in this case and generate a JSON file by stringifying the object provided.

@seanpk seanpk changed the title Generate download link for specs defined in an object Generate download link for specs defined by an object Jun 27, 2017
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