Closed
Description
When using the automatic validation from routing-controllers for some reason the email "patch@patch" is valid when we are using these validators and the "patch" validator group
@IsEmail({
allow_display_name: false,
allow_utf8_local_part: true,
require_tld: true
}, {
groups: ["post", "patch", "login"]
})
@IsOptional({
groups: ["patch"]
})
public email;
Doing it the manual way like so works however
let user = new UserValidation();
user.email = "patch@patch";
validate(user, {groups: ["patch"]}).then(console.log);