@adaikappan/nestjs-dto
v1.0.1
Published
NestJS Library for Data Transfer Object
Downloads
38
Readme
DT Decorators
String
- IsString
- IsLower
- IsUpper
- MinLength
- MaxLength
- Length
- StringContains
- StringNotContains
- MatchRegex
Number
- IsNumber
- IsInt
- Min
- Max
- IsPositive
- IsNegative
Boolean
- IsBoolean
Date
- IsDate ( Transform and IOS )
- MinDate ( Transform and IOS )
- MaxDate ( Transform and IOS )
Array
- IsArray @IsArray() @Type(() = * TestDto) @ValidateNested({})
- ArrayMinSize
- ArrayMaxSize
- ArrayNotEmpty
- ArrayUnique
- ArrayContains
- ArrayNotContains
Object
- IsObject @IsObject() @Type(() = * TestDto) @ValidateNested({})
Common
- IsRequired
- ValidateNested
- IsEnum
- Equals
Helper Decorators
Transform
- Transform [Not Working]
UC Decorators
common
- isbase64
- isemail
- isurl
- isJWT
- isMongoId
- isuuid
- isPort
- isLatLng
- isLat
- isLong
- isphone num
- iscurrency
Hybrid Decorators
- String
- Number
- Date
- Object
- Array