import { ApiProperty } from "@nestjs/swagger"; import { IsEmail, IsMongoId, IsString, MinLength } from "class-validator"; export class CreateRegistrarDto { @ApiProperty({ example: "registrar@sample.com" }) @IsEmail() email: string; @ApiProperty({ example: "securePassword123", minLength: 6 }) @IsString() @MinLength(6) password: string; @ApiProperty({ example: "507f1f77bcf86cd799439011" }) @IsMongoId() clientId: string; }