eduverse-backend / src /modules /monitoring /dto /update-error.dto.ts
amirhamdi's picture
all sprint 4 dev b endpoints works fine
f5957a1
Raw
History Blame Contribute Delete
522 Bytes
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;
}