index.js
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);
}
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);
}
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 ) ; }
Locate schema paths that are enums
@param
Locate schema paths that are enums