-
Notifications
You must be signed in to change notification settings - Fork 398
Closed
Labels
status: needs triageIssues which needs to be reproduced to be verified report.Issues which needs to be reproduced to be verified report.type: fixIssues describing a broken feature.Issues describing a broken feature.
Description
@JsonController()
class UserController {
@Post('/login')
login(@Body({validate: true}) user: User) {
console.log('this is a valid body');
return 'success!!!';
}
}
class User {
@IsEmail()
email: string;
@MinLength(6)
password: string;
}
createExpressServer({
controllers: [UserController]
}).listen(3000);
when ever I send the request it reply
console.log('this is a valid body');
although
this my config
useExpressServer(app, {
cors: true,
validation: true,
classTransformer: true,
routePrefix: '/api/v1',
controllers: [UserController],
});
bratanonhatemragab
Metadata
Metadata
Assignees
Labels
status: needs triageIssues which needs to be reproduced to be verified report.Issues which needs to be reproduced to be verified report.type: fixIssues describing a broken feature.Issues describing a broken feature.