UNPKG
nestjs-starter
Version:
latest (0.1.5)
0.1.5
0.1.4
0.1.3
0.1.2
Get started for beginners with Nestjs
github.com/pktai/nestjs-starter
pktai/nestjs-starter
nestjs-starter
/
src
/
modules
/
auth
/
dto
/
create-session.ts
15 lines
(12 loc)
•
281 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import
{ IsString, MaxLength, MinLength } from
'class-validator'
;
import
{ ApiProperty } from
'@nestjs/swagger'
; export
class
CreateSession
{
@ApiProperty()
@IsString()
username: string;
@ApiProperty()
@IsString()
@MinLength(8)
@MaxLength(32)
password: string; }