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

added optional factionId

parent e4f076b2
No related branches found
No related tags found
3 merge requests!59Development to master,!36Development,!32Game state
......@@ -7,14 +7,18 @@ import {
IsNumber,
Min,
Max,
IsOptional,
} from 'class-validator';
import { GameEntity } from '../game/game.entity';
import { RoleValidation } from '../shared/custom-validation';
import { RoleValidation, Uuid } from '../shared/custom-validation';
import { GameDTO } from '../game/game.dto';
import { FactionEntity, GameGroupEntity } from './faction.entity';
export class FactionDTO {
@IsOptional()
@IsUUID('4')
factionId?: string;
@IsString()
@IsNotEmpty()
@Length(2, 31)
......
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