fix(conversation): add class-validator decorators to DTO classes

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-01-09 20:20:46 -08:00
parent f06e6ee76e
commit 210e752223
2 changed files with 7 additions and 1 deletions

View File

@ -14,7 +14,8 @@
"Bash(docker compose:*)",
"Bash(ssh:*)",
"Bash(ping:*)",
"Bash(curl:*)"
"Bash(curl:*)",
"Bash(echo \"No health endpoint\" curl -s https://iconsulting.szaiai.com/api/v1/users/profile -H \"x-user-id: test\")"
]
}
}

View File

@ -8,13 +8,18 @@ import {
HttpCode,
HttpStatus,
} from '@nestjs/common';
import { IsOptional, IsString, IsNotEmpty } from 'class-validator';
import { ConversationService } from './conversation.service';
class CreateConversationDto {
@IsOptional()
@IsString()
title?: string;
}
class SendMessageDto {
@IsNotEmpty()
@IsString()
content: string;
}