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

Browser support not working as expected #74

Open
ghandic opened this issue Oct 11, 2021 · 3 comments
Open

Browser support not working as expected #74

ghandic opened this issue Oct 11, 2021 · 3 comments

Comments

@ghandic
Copy link

ghandic commented Oct 11, 2021

I followed the steps to clone, npm install, and then npm build. This generates a min.js file. However, when I add this to a script tag and then try to call OpenAPISnippet I get

OpenAPISnippet
VM438:1 Uncaught ReferenceError: OpenAPISnippet is not defined
    at <anonymous>:1:1
@ghandic ghandic closed this as completed Oct 11, 2021
@ghandic ghandic reopened this Oct 11, 2021
@ghandic
Copy link
Author

ghandic commented Oct 11, 2021

It is now working, unsure what my issue was... Do you guys plan to publish to a CDN? I'm integrating this into FastAPI and would like the ease of using a CDN to get the javascript

@ghandic
Copy link
Author

ghandic commented Oct 19, 2021

@ErikWittern is there any chance we could get this build and pushed to https://www.jsdelivr.com similar to how the swagger-ui-bundle is https://cdn.jsdelivr.net/npm/swagger-ui-dist@3/swagger-ui-bundle.js

@syedzahed
Copy link

syedzahed commented Dec 19, 2023

Its not OpenAPISnippet. Add 's' to its exported as OpenAPISnippets

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

2 participants