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