index.js
function convert(swagger, done) {
  fury.parse({source: swagger}, function (parseErr, res) {
    if (parseErr) {
      return done(parseErr);
    }
    fury.serialize({api: res.api}, function (serializeErr, blueprint) {
      if (serializeErr) {
        return done(serializeErr);
      }

      done(null, blueprint);
    });
  });
}
function convert(swagger, done) {
  fury.parse({source: swagger}, function (parseErr, res) {
    if (parseErr) {
      return done(parseErr);
    }
    fury.serialize({api: res.api}, function (serializeErr, blueprint) {
      if (serializeErr) {
        return done(serializeErr);
      }

      done(null, blueprint);
    });
  });
}
function convert ( swagger , done ) { fury . parse ( { source : swagger } , function ( parseErr , res ) { if ( parseErr ) { return done ( parseErr ) ; } fury . serialize ( { api : res . api } , function ( serializeErr , blueprint ) { if ( serializeErr ) { return done ( serializeErr ) ; } done ( null , blueprint ) ; } ) ; } ) ; }
Take a loaded Swagger object and converts it to API Blueprint
Take a loaded Swagger object and converts it to API Blueprint