You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use the Swagger parser in the browser and need to import a JSON schema file in a relative path instead of a HTTP get request. It will be served next to the app.js file to begin with and later i'll be loading from a NPM package that generates the JSON schema via some CI/CD build. (e.g. node_modules/some_package/schema.json);
Swagger Parser comes with built-in support for HTTP and HTTPS, as well as support for local files (when running in Node.js). You can configure or disable either of these built-in resolvers.
Is this not possible in browser mode?
The text was updated successfully, but these errors were encountered:
I'm trying to use the Swagger parser in the browser and need to import a JSON schema file in a relative path instead of a HTTP get request. It will be served next to the app.js file to begin with and later i'll be loading from a NPM package that generates the JSON schema via some CI/CD build. (e.g.
node_modules/some_package/schema.json
);App structure (Typical React app):
Here is what I've tried so far:
Per the docs:
Is this not possible in browser mode?
The text was updated successfully, but these errors were encountered: