import { IsBoolean, IsOptional } from "class-validator";
import { Transform } from "class-transformer";

/**
 * DTO for querying/filtering personalities
 */
export class PersonalityQueryDto {
  @IsOptional()
  @IsBoolean({ message: "isActive must be a boolean" })
  @Transform(({ value }) => value === "true" || value === true)
  isActive?: boolean;
}
