swagger-tools
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/swagger-tools package

0.10.4 • Public • Published

The project provides various tools for integrating and interacting with Swagger. This project is in its infancy but what is within the repository should be fully tested and reusable. Please visit the issue tracker to see what issues we are aware of and what features/enhancements we are working on. Otherwise, feel free to review the Release Notes to see what is new and improved.

Project Badges

Join the chat at https://gitter.im/apigee-127/swagger-tools

  • Build status: Build Status
  • Dependencies: Dependencies
  • Developer dependencies: Dev Dependencies
  • Downloads: NPM Downloads Per Month
  • License: License
  • Bower Version NPM Version
  • NPM Version: NPM Version

Supported Swagger Versions

Features

  • Simple CLI
    • Validate Swagger document(s)
    • Convert Swagger 1.2 documents to Swagger 2.0
  • Schema validation: For the file(s) supported by the Swagger specification, ensure they pass structural validation based on the JSON Schema associated with that version of the specification (Browser and Node)
  • Semantic validation: Validates Swagger files above and beyond the structure of the file (Browser and Node)
  • Connect middleware for adding pertinent Swagger information to your requests (Node only)
  • Connect middleware for wiring up security handlers for requests based on Swagger documentation (Node only)
  • Connect middleware for wiring request handlers to requests based on Swagger documentation (Node only)
  • Connect middleware for serving your Swagger documents and Swagger UI (Node only)
  • Connect middleware for using Swagger resource documents for pre-route validation (Node only)
    • Validate the request/response Content-Type based on the operation's consumes/produces value(s)
    • Validate the request parameter types
    • Validate the request parameter values
    • Validate the response values

Installation

Swagger Tools 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 swagger-tools --save

Standalone Binaries

The standalone binaries come in two flavors:

Node.js

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

npm install swagger-tools --save

If you want to use the swagger-tools executable for validating Swagger documents, you can install swagger-tools globally using the following:

npm install -g swagger-tools

Documentation

swagger-tools is heavily documented so head on over to the project documentation or jump straight to the Quick Start.

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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.10.435,258latest

Version History

VersionDownloads (Last 7 Days)Published
0.10.435,258
0.10.3157
0.10.22,432
0.10.11,096
0.10.01
0.9.164,720
0.9.152
0.9.141
0.9.131
0.9.121
0.9.111
0.9.101
0.9.9204
0.9.822
0.9.71,289
0.9.61
0.9.52
0.9.42
0.9.31
0.9.21
0.9.11
0.9.04
0.8.720
0.8.62
0.8.51
0.8.41
0.8.32
0.8.21
0.8.113
0.8.036
0.7.41
0.7.34
0.7.21
0.7.12
0.7.01
0.6.1310
0.6.121
0.6.111
0.6.104
0.6.91
0.6.81
0.6.71
0.6.61
0.6.53
0.6.316
0.6.21
0.6.12
0.6.038
0.5.92
0.5.83
0.5.71
0.5.69
0.5.510
0.5.43
0.5.31
0.5.22
0.5.112
0.5.01
0.4.82
0.4.71
0.4.61
0.4.52
0.4.41
0.4.32
0.4.21
0.4.11
0.4.01
0.3.21
0.3.11
0.3.01
0.2.12
0.2.02
0.1.61
0.1.51
0.1.41
0.1.31
0.1.21
0.1.11

Package Sidebar

Install

npm i swagger-tools

Weekly Downloads

45,432

Version

0.10.4

License

MIT

Unpacked Size

2.25 MB

Total Files

41

Last publish

Collaborators

  • whitlockjc