-
i have a dto
`import { IsUUID } from 'class-validator';
export class idDto {
@IsUUID()
id: string;
}`
a controller ` @Get(USER_REQUEST_MAPPING.GET_USER_BY_ID)
getUserById(@Param('id', …
-
**Feature Request**
- Adding validation for body/query params of express:Request.
**Advantages**
- Surety of client-side data we are working with.
- Prevention from various types of attacks incl…
-
https://github.com/validatorjs/validator.js/blob/43803c08d23b9cf316f2e804445b643b52920121/src/lib/isPassportNumber.js#L59
the regex, should be `/^[A-Z]{1,2}\d{6}$/` because there's some passports t…
-
**isDate returns false for all strings**
isDate is always returning false, even for correctly formatted strings.
**Examples**
validator.isDate('2024-01-01', { format: 'YYYY-MM-DD', delimiters: …
-
https://github.com/skaterdav85/validatorjs/issues/220
-
This is a fresh take at #1261
Re-posting my initial thoughts:
So, **a rewrite is out of question**. Looks like viable proposals we have right now are:
1) Add types alongside the library (for…
-
**What version of this package are you using?**
"validatorjs": "^3.22.1",
**What operating system, Node.js, and npm version?**
MacOs 12.4
Node v18.13.0
Yarn 1.22.19
I'm using Vite for th…
-
### Clear and concise description of the problem
We had several issues where invalid characters were in the locale data for a particular locale.
E.g.
- https://github.com/faker-js/faker/pull/…
-
**What version of this package are you using?**
v 3.22.1
**What operating system, Node.js, and npm version?**
- MacOS: Ventura 13.0.1 (22A400)
- node: v16.16.0
- npm: 8.11.0
**What happened?…
-
The signature of a field validator is basically:
```
value => boolean isValid
```
I'm wondering how difficult it would be to add the entire model as a second argument:
```
(value, model) => bool…