docs: function checkOptions(options) {
                  // @TODO: should we throw an error if there are incorrect options provided?
                  options = _.pick(options, permittedOptions);
  
                  let validationErrors = utils.validateOptions(options);
  
                  if (_.isEmpty(validationErrors)) {
                      return Promise.resolve(options);
                  }
  
                  // For now, we can only handle showing the first validation error
                  return Promise.reject(validationErrors[0]);
              }