Skip to content

Commit 8637608

Browse files
ggazzoclaude
andcommitted
fix(core-typings): add attachments field to MessageAttachmentDefault
The pin message attachment includes nested attachments but the type did not declare it, causing AJV validation to reject it with additionalProperties: false. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a1e52c9 commit 8637608

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/core-typings/src/IMessage/MessageAttachment/MessageAttachmentDefault.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { Root } from '@rocket.chat/message-parser';
22

3+
import type { MessageAttachment } from './MessageAttachment';
34
import type { MessageAttachmentBase } from './MessageAttachmentBase';
45

56
export type MarkdownFields = 'text' | 'pretext' | 'fields';
@@ -32,4 +33,6 @@ export type MessageAttachmentDefault = {
3233
thumb_url?: string;
3334

3435
color?: string;
36+
37+
attachments?: MessageAttachment[];
3538
} & MessageAttachmentBase;

0 commit comments

Comments
 (0)