import { IsString, MinLength } from "class-validator";

/**
 * DTO for rotating a credential's value
 */
export class RotateCredentialDto {
  @IsString({ message: "newValue must be a string" })
  @MinLength(1, { message: "newValue must not be empty" })
  newValue!: string;
}
