import { ApiProperty } from "@nestjs/swagger";
import { IsEmail, IsString, Length } from "class-validator";

export class LoginDto {
  @ApiProperty({ example: "operador@novasis.com", format: "email" })
  @IsEmail()
  email!: string;

  @ApiProperty({ example: "********", minLength: 8, maxLength: 200 })
  @IsString()
  @Length(8, 200)
  password!: string;
}
