Files
memegoat/backend/src/api-keys/dto/create-api-key.dto.ts
Mathis HERRIOT 975e29dea1
Some checks failed
Backend Tests / test (push) Has been cancelled
Lint / lint (push) Has been cancelled
refactor: format imports, fix indentation, and improve readability across files
Apply consistent import ordering and indentation in frontend and backend files. Ensure better maintainability and adherence to code style standards.
2026-01-14 21:06:38 +01:00

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;
}