code: function loadSchema(uri) {
    return new Promise(function(resolve, reject) {
      request.get(uri).end(function(error, response) {
        if (error || !response.ok) {
          error = error || new Error(response.body);
          debug("error fetching remote schema:", error);
          return reject(error);
        }
        return resolve(response.body);
      });
    });
  }
docs: Loads schema from remote server using a HTTP URI.
  
  @private
  @param  {String} uri - HTTP URI to schema
  @return {Promise}
  @see https://github.com/epoberezkin/ajv#asynchronous-schema-compilation