fastest-validator
fastest-validator copied to clipboard
:zap: The fastest JS validator library for NodeJS
I suggest adding support for an array of functions in the custom property of Fastest Validator. This enhancement would enable users to apply multiple filters efficiently, simplifying complex validation scenarios...
I have enhanced the custom handling functionality to accommodate the reception of an array containing anonymous functions or function names defined in the global custom functions. please refer to the...
Is it possible to set strict mode (yes/remove) to the deep objects somehow? ```javascript const schema = { $$strict: true, set: { type: 'object', props: { a: { type: 'number',...
Hello. How to validate fields with name like `````` in browser? Schema like this doesn't work: ``` let schema = { "field[name]": { type: 'string', required: true }, } ```
How to make such a type that the field is either absent at all or is a number, i tried it:  But as you see from console.log it doesnt...
Code ```javascript import FastestValidator from 'fastest-validator'; const v = new FastestValidator(); const check = v.compile({ id: { type: 'number', max: 'console.log("ALERT")' } }); check({id:123}); ``` will print 'ALERT'. Ajv validator...
I think it'd be cool to pass in an object as an error message that can be parsed and processed later in whatever validation function you have setup. For example,...
The d.ts file is missing a module declaration for typescript to work. Without the declaration, typescript does not accept, for example Validator as a constructable expression.
Every single time I pull from my Git repo, I get this error: ``` error: The source code is invalid, as it does not match the expected hash in the...
A feature to optionally (default false) not apply defaults would be a great feature.