Files
stack/apps/api/src/teams/dto/create-team.dto.ts
Jason Woltje 0e6734bdae
All checks were successful
ci/woodpecker/push/api Pipeline was successful
feat(api): add team management module with CRUD endpoints (#564)
Co-authored-by: Jason Woltje <jason@diversecanvas.com>
Co-committed-by: Jason Woltje <jason@diversecanvas.com>
2026-02-28 18:24:09 +00:00

14 lines
481 B
TypeScript

import { IsOptional, IsString, MaxLength, MinLength } from "class-validator";
export class CreateTeamDto {
@IsString({ message: "name must be a string" })
@MinLength(1, { message: "name must not be empty" })
@MaxLength(255, { message: "name must not exceed 255 characters" })
name!: string;
@IsOptional()
@IsString({ message: "description must be a string" })
@MaxLength(10000, { message: "description must not exceed 10000 characters" })
description?: string;
}