lib/transform/standardize.js
function requireAttribute(filter, keyword, attribute) {
  if (!filter[attribute]) {
    return Bluebird.reject(new BadRequestError(`"${keyword}" requires the following attribute: ${attribute}`));
  }

  return Bluebird.resolve();
}
function requireAttribute(filter, keyword, attribute) {
  if (!filter[attribute]) {
    return Bluebird.reject(new BadRequestError(`"${keyword}" requires the following attribute: ${attribute}`));
  }

  return Bluebird.resolve();
}
function requireAttribute ( filter , keyword , attribute ) { if ( ! filter [ attribute ] ) { return Bluebird . reject ( new BadRequestError ( ` ${ keyword } ${ attribute } ` ) ) ; } return Bluebird . resolve ( ) ; }
Verifies that "filter.attribute' exists
@param filter
@param keyword
@param attribute
@returns {Promise}
Verifies that filter . attribute exists