UNPKG

fastest-validator

Version:

The fastest JS validator library for NodeJS

15 lines (11 loc) 284 B
"use strict"; module.exports = function ({ schema, messages, index }, path, context) { const src = []; src.push(` ${this.makeCustomValidator({ fnName: "check", path, schema, messages, context, ruleIndex: index })} return value; `); return { source: src.join("\n") }; };