mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-16 20:59:26 +00:00
11 lines
217 B
TypeScript
11 lines
217 B
TypeScript
import { Length, Matches } from 'class-validator';
|
|
|
|
export class CreateUserDto {
|
|
@Length(3, 10)
|
|
login: string;
|
|
@Length(6, 20)
|
|
password: string;
|
|
@Matches(/^[\w-.]+@([\w-]+\.)+[\w-]{2,4}$/)
|
|
email: string;
|
|
}
|