import { ApiProperty } from '@nestjs/swagger'; import { IsString, MaxLength, MinLength } from 'class-validator'; export class DebugCorrectionDto { @ApiProperty({ example: 'La boucle doit commencer a 0, pas a 1.' }) @IsString() @MinLength(1) @MaxLength(4000) correction!: string; }