Skip to content

Conversation

@Artuomka
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings January 30, 2026 13:27
@Artuomka Artuomka enabled auto-merge January 30, 2026 13:28
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds Swagger/OpenAPI documentation decorators to AI conversation history response objects to improve API documentation.

Changes:

  • Added @ApiProperty decorators with descriptions to AiChatMessageRO, UserAiChatRO, and UserAiChatWithMessagesRO classes
  • Imported ApiProperty from @nestjs/swagger to enable Swagger documentation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ApiProperty({ description: 'Message content' })
message: string;

@ApiProperty({ enum: MessageRole, description: 'Role of the message sender (user or ai)' })
Copy link

Copilot AI Jan 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description mentions 'user or ai' but the MessageRole enum actually has three possible values: 'user', 'ai', and 'system'. The description should include all possible values to accurately document the API.

Suggested change
@ApiProperty({ enum: MessageRole, description: 'Role of the message sender (user or ai)' })
@ApiProperty({ enum: MessageRole, description: 'Role of the message sender (user, ai, or system)' })

Copilot uses AI. Check for mistakes.
@Artuomka Artuomka merged commit 02f865a into main Jan 30, 2026
19 checks passed
@Artuomka Artuomka deleted the backend_ai_conversation_history branch January 30, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants