Skip to main content
0 votes
0 answers
51 views

I'm researching that can I use i18n for the messages of validation exceptions. For example: create-user.dto.ts export default class createUserDto { @MinLength(5) @IsString() name: string; }...
Mehmet KÖSMEN's user avatar
0 votes
1 answer
62 views

Consider following Dtos: export class Child { @ApiProperty({ type: String, isArray: true, }) name: string; @ApiProperty({ type: Number, isArray: true, }) age: number; } ...
Tu Le Anh's user avatar
  • 101
0 votes
0 answers
36 views

I am working on a NestJS project where I use class-validator to validate incoming DTOs. I have a custom validator @IsAccessPointExists() that checks if an access point exists in the database. The ...
Aslan Gurbanov's user avatar
1 vote
1 answer
69 views

I´m trying to validate the body of a route on NestJS and i´m using the class-validator package, my route is receiving the data as multipat because this route also accepts a file upload. Here is the ...
DMinatto's user avatar
1 vote
0 answers
94 views

I am working with NestJS and trying to apply the IsEnum decorator to an optional property. However, I am encountering an error. I am using "class-validator": "^0.14.1" and my DTO ...
varsha kumari's user avatar
1 vote
1 answer
129 views

I try to send login credentials to my NestJS API. API uses class-validator to validate incoming requests' bodies. // auth.controller.ts @Post('login') async login(@Res({ passthrough: true }) response: ...
brizgalka's user avatar
1 vote
0 answers
84 views

I have a POST /login route in my Express application where I'm using a payload validation middleware before the controller, structured as follows: profileRouter.post( "/login", ...
Koyejo's user avatar
  • 47
2 votes
1 answer
326 views

I am building a NestJS application with a pagination API that includes filtering and searching capabilities. To handle this, I created an abstract class, PaginationAbstract, which accepts two generic ...
Saeed Ghofrani's user avatar

15 30 50 per page
1
2 3 4 5
29