src/user/dto/create-user.dto.ts
Properties |
Readonly email |
email:
|
Type : string
|
Decorators :
@IsNotEmpty()
|
Defined in src/user/dto/create-user.dto.ts:9
|
Readonly password |
password:
|
Type : string
|
Decorators :
@IsNotEmpty()
|
Defined in src/user/dto/create-user.dto.ts:12
|
Readonly username |
username:
|
Type : string
|
Decorators :
@IsNotEmpty()
|
Defined in src/user/dto/create-user.dto.ts:6
|
import { IsNotEmpty } from 'class-validator';
export class CreateUserDto {
@IsNotEmpty()
readonly username: string;
@IsNotEmpty()
readonly email: string;
@IsNotEmpty()
readonly password: string;
}