File size: 522 Bytes
f5957a1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { IsOptional, IsString, IsEnum } from 'class-validator';
import { ApiPropertyOptional } from '@nestjs/swagger';

export class UpdateErrorDto {
  @ApiPropertyOptional({
    description: 'Resolution status',
    enum: ['investigating', 'resolved', 'ignored'],
    example: 'resolved',
  })
  @IsOptional()
  @IsString()
  status?: string;

  @ApiPropertyOptional({ description: 'Notes about the resolution', example: 'Fixed by patching the API endpoint' })
  @IsOptional()
  @IsString()
  resolutionNotes?: string;
}