Skip to content

Commit 880984d

Browse files
committed
🐛 fix: add ArrayMaxSize validation to CreateQuizzesDto
1 parent 092f74e commit 880984d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/modules/quiz/dto/create-update.dto.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {
2+
ArrayMaxSize,
23
ArrayNotEmpty,
34
IsNotEmpty,
45
IsString,
@@ -74,6 +75,7 @@ export class QuizContent {
7475

7576
export class CreateQuizzesDto {
7677
@ArrayNotEmpty()
78+
@ArrayMaxSize(5)
7779
@Type(() => QuizContent)
7880
@ValidateNested()
7981
@ApiProperty({

0 commit comments

Comments
 (0)