code: function findPaths(schema, options) {
    const paths = [];
  
    schema.eachPath(function(path, type) {
      if (type.enumValues && type.enumValues.length) {
        paths.push(
          {
            path: path,
            enumValues: type.enumValues,
            options: options
          }
        );
      }
    });
  
    return filterPaths(paths, options);
  }
docs: Locate schema paths that are enums
  @param