From 005c997220a38072e9c58a36c6f1a37ec0e71487 Mon Sep 17 00:00:00 2001 From: Ronnie Friman <L4168@student.jamk.fi> Date: Sun, 21 Jul 2019 08:47:00 +0300 Subject: [PATCH] fix validation for node_id --- src/game/game.dto.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/game/game.dto.ts b/src/game/game.dto.ts index abf1742..838b32c 100644 --- a/src/game/game.dto.ts +++ b/src/game/game.dto.ts @@ -86,16 +86,18 @@ export class FlagboxDTO { objectivePointId: string; @IsString() @IsNotEmpty() - @Length(7) + @Length(7, 7) objectivePointDescription: string; @IsNumber() objectivePointMultiplier: number; + @IsOptional() + data: JSON; } export class FlagboxEventDTO { @IsString() @IsNotEmpty() - @Length(7) + @Length(7, 7) node_id: string; @IsNumber() @Min(0) -- GitLab