nestjs-starter
Version:
Get started for beginners with Nestjs
28 lines (24 loc) • 560 B
text/typescript
import {
// IsEnum,
// IsOptional,
IsString,
MaxLength,
MinLength,
} from 'class-validator';
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
// import { Roles } from 'src/modules/auth/roles/roles.decorator';
export class CreateUser {
readonly username: string;
readonly password: string;
// @ApiPropertyOptional()
// @IsString()
// @IsOptional()
// @IsEnum(Roles, { each: true })
// readonly roles?: string;
}