13 lines
259 B
TypeScript
13 lines
259 B
TypeScript
import { IsObject, IsOptional, IsString, MaxLength, MinLength } from "class-validator";
|
|
|
|
export class CreateHouseholdDto {
|
|
@IsString()
|
|
@MinLength(2)
|
|
@MaxLength(120)
|
|
name!: string;
|
|
|
|
@IsOptional()
|
|
@IsObject()
|
|
metadata?: Record<string, unknown>;
|
|
}
|