Apply consistent import ordering and indentation in frontend and backend files. Ensure better maintainability and adherence to code style standards.
19 lines
248 B
TypeScript
19 lines
248 B
TypeScript
import {
|
|
IsDateString,
|
|
IsNotEmpty,
|
|
IsOptional,
|
|
IsString,
|
|
MaxLength,
|
|
} from "class-validator";
|
|
|
|
export class CreateApiKeyDto {
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
@MaxLength(128)
|
|
name!: string;
|
|
|
|
@IsOptional()
|
|
@IsDateString()
|
|
expiresAt?: string;
|
|
}
|