index.js
function dereference(file, opts, cb) {
	parser.dereference(file.path, opts, (err, schema) => {
		if (err) {
			this.emit('error', new gutil.PluginError('gulp-jsonschema-deref', err, {fileName: file.path}));
		} else {
			file.contents = Buffer.from(JSON.stringify(schema));
			this.push(file);
		}
		cb();
	});
}
function dereference(file, opts, cb) {
	parser.dereference(file.path, opts, (err, schema) => {
		if (err) {
			this.emit('error', new gutil.PluginError('gulp-jsonschema-deref', err, {fileName: file.path}));
		} else {
			file.contents = Buffer.from(JSON.stringify(schema));
			this.push(file);
		}
		cb();
	});
}
function dereference ( file , opts , cb ) { parser . dereference ( file . path , opts , ( err , schema ) => { if ( err ) { this . emit ( 'error' , new gutil . PluginError ( 'gulp-jsonschema-deref' , err , { fileName : file . path } ) ) ; } else { file . contents = Buffer . from ( JSON . stringify ( schema ) ) ; this . push ( file ) ; } cb ( ) ; } ) ; }
Dereference a jsonschema
Dereference a jsonschema