A library that simplifies Swagger integrations.
Перейти к файлу
Amar Zavery 720d5f317a skipping 2 more tests. total 23 as of now. 2018-01-31 17:50:17 -08:00
browser browserify changes 2018-01-31 17:38:19 -08:00
docs browserify changes 2018-01-31 17:38:19 -08:00
lib satisfy linter 2018-01-31 17:31:15 -08:00
test skipping 2 more tests. total 23 as of now. 2018-01-31 17:50:17 -08:00
.editorconfig Initial project structure. 2015-04-09 19:24:39 -06:00
.eslintrc Update dependencies 2016-02-25 22:29:39 +02:00
.gitignore Do not version VS Code files 2016-12-22 20:15:11 -07:00
.nsprc Adding security vulnerability checking 2017-10-10 22:36:21 -06:00
.travis.yml enable ci for validation branch 2018-01-31 17:30:30 -08:00
CONTRIBUTING.md Added a contributing guide 2016-01-12 12:01:15 -07:00
LICENSE Initial project structure. 2015-04-09 19:24:39 -06:00
README.md Fix TravisCI (and minor docs fix) 2017-07-07 22:29:55 -06:00
RELEASE_NOTES.md Add support for registering custom formats 2018-01-21 17:31:55 -07:00
bower.json Updating dependencies 2017-10-10 22:33:39 -06:00
gulpfile.js Adding security vulnerability checking 2017-10-10 22:36:21 -06:00
index.d.ts Attempting to add Typings 2016-12-07 21:02:30 -05:00
index.js Fix bug in reference resolution 2017-12-01 20:42:48 -07:00
package-lock.json update package lock file. 2018-01-31 17:38:35 -08:00
package.json Merge branch 'master' of github.com:apigee-127/sway into upd 2017-11-14 15:10:36 -08:00

README.md

A library that simplifies Swagger integrations. This library handles the minutiae of loading Swagger documents (local and remote), resolving references (local, remote), building an object model and providing you with a rich set of APIs for things like Swagger document validation, request/response validation, etc. For more details on the available APIs, please view the API Documentation.

Sway will always be built around the latest stable release of Swagger, which happens to be version 2.0 right now. This means that its APIs and object model will be specific to that version of Swagger and supporting any other versions of Swagger will require a conversion step prior to using Sway.

Project Badges

  • Build status: Build Status
  • Dependencies: Dependencies
  • Developer dependencies: Dev Dependencies
  • Downloads: NPM Downloads Per Month
  • Gitter: Join the chat at https://gitter.im/apigee-127/sway
  • License: License
  • Version: NPM Version

Installation

sway is available for both Node.js and the browser. Installation instructions for each environment are below.

Browser

Installation for browser applications can be done via Bower or by downloading a standalone binary.

Using Bower

bower install sway --save

Standalone Binaries

The standalone binaries come in two flavors:

Note: I realize these binaries are big and I'm working on making them smaller. Unfortunately, some of this is out of my control without rewriting some of the core features provided by third-party libraries currently contributing to the size issue.

Node.js

Installation for Node.js applications can be done via NPM.

npm install sway --save

Documentation

The documentation for this project can be found here: /docs/README

Of course, if you just want a quick link to the API documentation, that would be here:/docs/API.md

Contributing

This project uses Gulp for building so npm install -g gulp once you clone this project. Running gulp in the project root will lint check the source code and run the unit tests.