sway in a Web Worker
This module is depricated and built specifically for Swagger Editor.
MIT
This module is depricated and built specifically for Swagger Editor.
MIT
How was/is built this index.js file? I can see that the code is not exactly the same as the code from the libs it seems to be built on.
For instance, the way it handles the "file" scheme for json-refs is not the same as the one from path-loader (https://github.com/whitlockjc/path-loader/blob/v1.0.1/lib/loaders/file.js).
I'm currently trying to embed swagger-editor in node-webkit, and I'm having trouble with the "file" scheme, as I'm currently getting a The 'file' scheme is not supported in the browser
error when using a file://
location.
I can understand why the code cannot use fs
, as it's in a worker. But it seems to me it could nonetheless try using a xhr request for file
requests.
Is there any way I could submit a merge request for that?
I'm trying to pass along additional validation rules in addition to the default schema and semantic rules already in Sway. Sway allows a customValidators list of functions to be passed in the createApi. However, you can't pass a list of functions to a web worker so this feature is broken.
I referring to this... https://github.com/swagger-api/sway-worker/blob/master/index.js#L28-L39
If there are errors
we return either defintionsFullyResolved
or defintions
If there are no errors we only return defintionsFullyResolved
Is this intentional? I'm curious, because defintionsFullyResolved
isn't populate in my case. Could this be a sway
issue?
When I created this module, I wanted to encapsulate all of sway worker JS file into a module so I don't check in a huge file in Swagger Editor. Now that #3 is happening, that small webpack build process can be part of Swagger Editor build and we can check-in worker.js
file in this repo.
That will make Swagger Editor depend on Sway directly and it would be easier for Editor to get newest Sway version.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.