10 lines
159 B
TypeScript
10 lines
159 B
TypeScript
import { IsEmail, IsNotEmpty } from 'class-validator';
|
|
|
|
export class CreateUserDto {
|
|
@IsEmail()
|
|
username: string;
|
|
|
|
@IsNotEmpty()
|
|
externalId: string;
|
|
}
|