Giter Club home page Giter Club logo

sway-worker's Introduction

sway in a Web Worker

This module is depricated and built specifically for Swagger Editor.

MIT

sway-worker's People

Contributors

mohsen1 avatar ponelat avatar saharj avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sway-worker's Issues

"file" loader for json-refs not supported?

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 filerequests.

Is there any way I could submit a merge request for that?

CustomValidators functions cannot be passed to Sway-Worker

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.

This module should not exist!

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.