Skip to content
Snippets Groups Projects
Commit 211faef1 authored by L4168's avatar L4168
Browse files

wip json validation

parent 7251da43
No related branches found
No related tags found
2 merge requests!59Development to master,!18Join game
...@@ -20,9 +20,12 @@ export class GameDTO { ...@@ -20,9 +20,12 @@ export class GameDTO {
@IsNotEmpty() @IsNotEmpty()
@Length(1, 255) @Length(1, 255)
desc: string; desc: string;
@IsNotEmpty()
//@IsJSON()
center: JSON; center: JSON;
//@IsJSON() //@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; map?: JSON;
@IsDateString() @IsDateString()
@IsNotEmpty() @IsNotEmpty()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment