code: function collectSchemas( entries ) {
        const followSchemaOnce = promiseOnce( followSchema );
        const followEntryToSchemas = followEntryRefs( 'schemas', followSchemaOnce );
  
        return Promise.all( entries.map( followEntryToSchemas ) )
           .then( flatten )
           .then( dedupe );
     }
docs: //////////////////////////////////////////////////////////////////////////////////////////////////////// 
  Asynchronously collect all schemas corresponding to the given paths.
  
  Example:
  
  collector.collectSchemas( [ { schemas: [ 'schema' ] } ] )
  .then( schemas => {
  assert( Array.isArray( schemas ) );
  } );
  // => [ {
  //       refs: [ 'schema' ],
  //       name: 'schema',
  //       path: 'path/to/schema.json',
  //       pages: [ ... ]
  //    } ]
  
  
  @memberOf ArtifactCollector
  @param {Array} entries a list of entry objects containing a schemas key
  @return {Promise<Array>}
  a promise for an array of schema-meta objects