openapi-snippet icon indicating copy to clipboard operation
openapi-snippet copied to clipboard

Browser support not working as expected

Open ghandic opened this issue 3 years ago • 3 comments

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 avatar Oct 11 '21 01:10 ghandic

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 avatar Oct 11 '21 06:10 ghandic

@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

ghandic avatar Oct 19 '21 00:10 ghandic

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

syedzahed avatar Dec 19 '23 11:12 syedzahed