lib/dereference.js
function dereference (parser, options) {
  // console.log('Dereferencing $ref pointers in %s', parser.$refs._root$Ref.path);
  var dereferenced = crawl(parser.schema, parser.$refs._root$Ref.path, "#", [], parser.$refs, options);
  parser.$refs.circular = dereferenced.circular;
  parser.schema = dereferenced.value;
}
function dereference (parser, options) {
  // console.log('Dereferencing $ref pointers in %s', parser.$refs._root$Ref.path);
  var dereferenced = crawl(parser.schema, parser.$refs._root$Ref.path, "#", [], parser.$refs, options);
  parser.$refs.circular = dereferenced.circular;
  parser.schema = dereferenced.value;
}
function dereference ( parser , options ) { // console.log('Dereferencing $ref pointers in %s', parser.$refs._root$Ref.path);
 var dereferenced = crawl ( parser . schema , parser . $refs . _root$Ref . path , "#" , [ ] , parser . $refs , options ) ; parser . $refs . circular = dereferenced . circular ; parser . schema = dereferenced . value ; }
Crawls the JSON schema, finds all JSON references, and dereferences them.
This method mutates the JSON schema object, replacing JSON references with their resolved value.

@param {$RefParser} parser
@param {$RefParserOptions} options
Crawls the JSON schema finds all JSON references and dereferences them . This method mutates the JSON schema object replacing JSON references with their resolved value .