validate input from entity intall: npm i zimoykin-validate use: import { validate } from 'zimoykin-validate' // you also need use DataTransferProtocol like this export class UserDto extends DataTransferObject { @asEmail email: string @asString password: string }