resolve manual DTOs
This commit is contained in:
8
apps/api/src/domain/league/dtos/MembershipStatusDTO.ts
Normal file
8
apps/api/src/domain/league/dtos/MembershipStatusDTO.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { IsEnum } from 'class-validator';
|
||||
|
||||
export class MembershipStatusDTO {
|
||||
@ApiProperty({ enum: ['active', 'inactive', 'pending'] })
|
||||
@IsEnum(['active', 'inactive', 'pending'])
|
||||
value: 'active' | 'inactive' | 'pending';
|
||||
}
|
||||
Reference in New Issue
Block a user