diff --git a/src/game/game.dto.ts b/src/game/game.dto.ts index 9c5b06df85c69343e66322d0735a4f58bb6e793f..12bde8680e866f7956fb69ac4667581ac9e96619 100644 --- a/src/game/game.dto.ts +++ b/src/game/game.dto.ts @@ -20,9 +20,12 @@ export class GameDTO { @IsNotEmpty() @Length(1, 255) desc: string; + @IsNotEmpty() + //@IsJSON() center: JSON; //@IsJSON() - // doesn't accept with IsJSON, WIP to get validation for map + // doesn't accept with IsJSON, WIP to get validation for map and center + // IsJSON checks with json.parse, expecting string map?: JSON; @IsDateString() @IsNotEmpty()