Commit a1e52c9
fix(core-typings): fix MessageAttachment oneOf discrimination for quote attachments
- Make message_link required in MessageQuoteAttachment (serves as
discriminator for AJV oneOf)
- Patch MessageAttachmentDefault schema at runtime to add
additionalProperties: false, preventing it from matching every
attachment type in the oneOf
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 74eb925 commit a1e52c9
2 files changed
Lines changed: 8 additions & 1 deletion
File tree
- apps/meteor/app/api/server
- packages/core-typings/src/IMessage/MessageAttachment
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
6 | 13 | | |
7 | 14 | | |
8 | 15 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments