refactor
This commit is contained in:
12
apps/api/src/domain/league/dtos/LeagueMembershipsDTO.ts
Normal file
12
apps/api/src/domain/league/dtos/LeagueMembershipsDTO.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { IsArray, ValidateNested } from 'class-validator';
|
||||
import { Type } from 'class-transformer';
|
||||
import { LeagueMemberDTO } from './LeagueMemberDTO';
|
||||
|
||||
export class LeagueMembershipsDTO {
|
||||
@ApiProperty({ type: [LeagueMemberDTO] })
|
||||
@IsArray()
|
||||
@ValidateNested({ each: true })
|
||||
@Type(() => LeagueMemberDTO)
|
||||
members: LeagueMemberDTO[];
|
||||
}
|
||||
Reference in New Issue
Block a user