import { ApiProperty } from '@nestjs/swagger'; import { IsString, MaxLength, MinLength } from 'class-validator'; export class FeynmanSubmissionDto { @ApiProperty({ example: "C'est comme faire tourner une photo autour d'un point fixe.", }) @IsString() @MinLength(1) @MaxLength(4000) explanation!: string; }