Skip to content

Gulp plugin that parses Swagger specs in JSON or YAML format, validates against the official Swagger 2.0 schema, dereferences all $ref pointers, including pointers to external files and generates client-side API code.

License

gradient/gulp-swagger-bundle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gulp Swagger Bundle

Package gulp-swagger-bundle
Description [Gulp][gulp] plugin that bundles [Swagger][swagger].
Node Version >= 0.8

This is a fork of gulp-swagger, it has been stripped down to run a super efficient bundle process for a smaller output file. If you'd like more validation features, see the original.

Install

npm install @gradient/gulp-swagger-bundle

Usage

Output fully parsed schema:

var gulp = require('gulp');
var swagger = require('gulp-swagger');

gulp.task('schema', function() {
  gulp.src('./src/api/index.yaml')
    .pipe(swagger('schema.json'))
    .pipe(gulp.dest('./build'));
});

gulp.task('default', ['schema']);

See Also

  • [Gulp][gulp]
  • [Swagger][swagger]
  • [Swagger-Parser][swagger-parser]
  • [Swagger to JS Codegen][swagger-js-codegen]

Contributing

We welcome contributions, make any changes you like an submit a pull request!

About

Gulp plugin that parses Swagger specs in JSON or YAML format, validates against the official Swagger 2.0 schema, dereferences all $ref pointers, including pointers to external files and generates client-side API code.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%