gulp-mson-to-json-schema

v1.1.1
Generate JSON Schema files from API Blueprint’s MSON
gulp gulpplugin api-blueprint mson json-schema

gulp-mson-to-json-schema

install

$ npm install gulp-mson-to-json --save-dev

pipe

options
  • samples set to true to include schema conformant JSON files, populated with MSON sample values

/gulpfile.js

var gulp = require('gulp');
var MSONtoJSON = require('gulp-markdown-to-json-schema');

gulp.task('schema', function(){
  return gulp.src('./schema/**/*.md')
    .pipe(MSONtoJSON())
    .pipe(gulp.dest('./schema/json'));
});

JSON output comes from boutique as a string. Pipe in gulp-beautify for beautiful, readable files.


MIT LICENSE
copyright © 2015 Push the Red Button.

npm i gulp-mson-to-json-schema

Metadata

  • MIT
  • >=0.10.0
  • Eric Lanehart
  • released 2/20/2016

Downloads

Maintainers