Decorators for Requests and Responses
import { ApiProperty } from '@nestjs/swagger';
export class NotificationCategoryDto {
@ApiProperty({
name: 'name',
type: String,
required: true,
example: 'Accounts',
})
name: string;
}

Last updated