- Added `description` field to create and update group DTOs. - Simplified person DTOs by consolidating fields into `name`, replacing various attributes. - Added `skills` field to create and update person DTOs for array-based skill representation.
29 lines
383 B
TypeScript
29 lines
383 B
TypeScript
import {
|
|
IsString,
|
|
IsOptional,
|
|
IsObject,
|
|
IsUUID,
|
|
IsArray
|
|
} from 'class-validator';
|
|
|
|
/**
|
|
* DTO for updating a person
|
|
*/
|
|
export class UpdatePersonDto {
|
|
@IsString()
|
|
@IsOptional()
|
|
name?: string;
|
|
|
|
@IsUUID()
|
|
@IsOptional()
|
|
projectId?: string;
|
|
|
|
@IsArray()
|
|
@IsOptional()
|
|
skills?: string[];
|
|
|
|
@IsObject()
|
|
@IsOptional()
|
|
metadata?: Record<string, any>;
|
|
}
|