8 lines
276 B
TypeScript
8 lines
276 B
TypeScript
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';
|
|
} |