fastest-validator icon indicating copy to clipboard operation
fastest-validator copied to clipboard

:zap: The fastest JS validator library for NodeJS

Results 56 fastest-validator issues
Sort by recently updated
recently updated
newest added

hi, i want to write enum type and its values in shorthand syntax, but how? ```bash 'enum|values:1, 2' ``` it throws an error in the console : ```bash /node_modules/fastest-validator/lib/rules/enum.js:10 ${this.makeError({...

enhancement

Hi - Is it possible to automatically generate schema from TS Interface or Type ? Or is there any future plans for it ?

Hi! I encountered incorrect validation of an array of objects. Code: ```js const Validator = require('fastest-validator'); const v = new Validator(); const schema = { $$root: true, type: 'array', items:...

Hi, I really appreciate your library and have used it ever since I found out about it (roughly a year). However, I encountered an issue. When I tried to compile...

The documentaiton is ambiguous about the difference between `type and $$type. For example this test on enum: ```javascript it("allows enums in a nested schema", () => { const check =...

Add support enum list into number validation. Ex: type: { type: 'number', enum: [1, 3, 5, 7] },