import { IsString, IsNotEmpty, MaxLength } from 'class-validator'; import { ApiProperty } from '@nestjs/swagger'; export class CreateApiKeyDto { @ApiProperty({ description: 'Human-readable label for this key', maxLength: 100 }) @IsString() @IsNotEmpty() @MaxLength(100) name: string; }