import { IsString, IsOptional, MaxLength } from "class-validator";

/**
 * DTO for restoring a previous version of a knowledge entry
 */
export class RestoreVersionDto {
  @IsOptional()
  @IsString({ message: "changeNote must be a string" })
  @MaxLength(500, { message: "changeNote must not exceed 500 characters" })
  changeNote?: string;
}
