code: function resolveFileReference (url, file) {
    var schema = file.schema;
    var newFile = new File(schema);
  
    // Remove any hash from the URL, since this URL represents the WHOLE file, not a fragment of it
    url = stripHash(url);
  
    // Resolve the new file's absolute URL
    newFile.url = schema.plugins.resolveURL({ from: file.url, to: url });
  
    // Add this file to the schema, unless it already exists
    if (!schema.files.exists(newFile)) {
      schema.files.push(newFile);
    }
  }
docs: Resolves the given JSON Reference URL against the specified file, and adds a new {@link File}
  object to the schema if necessary.
  
  @param {string} url - The JSON Reference URL (may be absolute or relative)
  @param {File} file - The file that the JSON Reference is in