openapi-snippet
openapi-snippet copied to clipboard
Browser support not working as expected
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
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
@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
Its not OpenAPISnippet. Add 's' to its exported as OpenAPISnippets