function parse(options) {
  return new Promise((fulfil, reject) => {
    const parser = new Parser(options);
    parser.parse((error, parseResult) => {
      if (error) {
        reject(error);
      } else {
        fulfil(parseResult);
      }
    });
  });
}
/*
 * Parse Swagger 2.0 into Refract elements
 */
Parse Swagger 2.0 into Refract elements
Parse Swagger 2 . 0 into Refract elements
function parse(options) {
  return new Promise((fulfil, reject) => {
    const parser = new Parser(options);
    parser.parse((error, parseResult) => {
      if (error) {
        reject(error);
      } else {
        fulfil(parseResult);
      }
    });
  });
}
function parse ( options ) { return new Promise ( ( fulfil , reject ) => { const parser = new Parser ( options ) ; parser . parse ( ( error , parseResult ) => { if ( error ) { reject ( error ) ; } else { fulfil ( parseResult ) ; } } ) ; } ) ; }
Parse Swagger 2.0 into Refract elements
Parse Swagger 2 . 0 into Refract elements