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

I need validator that accepts multiple parameters and return true if at least one passed: ```javascript let schema = { $$oneOf: [ token: { type: 'string' }, key: { type:...

This information can help attackers to find valid patterns that cause problems or find a way to bypass validations. Too risky

Consider this Code: ```js const check = v.compile({ foo: { type: "string", optional: true, custom(v) { console.log("custom"); return v; }, }, }); check({}); ``` Currently, the `custom` function is called....

breaking-change

Current typescript tests are just useless and confusing. we should just write a single test for the `index.d.ts` file with ‍‍‍`tsd`. This is best practice for Javascript based projects with...

enhancement

Hi, thanks again for this project! I've been working on "conditional" types and wanted to have your opinion on the feature and API. I'm trying to implement something similarly to...

I would like to integrate a swagger (openapi) documentation in Koa using the fastest-validator schemas. Does anybody have an idea or suggestion on how I can smoothly incorporate swagger with...

question

Similar to #186, I would like to create a frontend module which can generate HTML forms based on the FV schema because it contains every information about the type of...

enhancement

It would be great to convert FV schema to documentation (e.g: markdown file) ```js const schema = { index: { type: 'number', description: 'Plan order index' }, name: 'string', price:...

enhancement

If there is a problem with the schema, the validator currently only ignores it, and does not show any message. for example: ```js const schema = { foo: "number|min=1|max=10" }...

enhancement

Since version 1 a rule seems (?) to write always back a field after validation - i think this is because of the sanitize / convert concept. This happens even...