Skip to content

Commit 2c96daf

Browse files
feat: add gif fields to media message schema
Add gifPlayback and gifAttribution validation support to media message schema.
1 parent fd18f7d commit 2c96daf

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/validate/message.schema.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,15 @@ export const mediaMessageSchema: JSONSchema7 = {
102102
media: { type: 'string' },
103103
fileName: { type: 'string' },
104104
caption: { type: 'string' },
105+
gifPlayback: {
106+
oneOf: [{ type: 'boolean' }, { type: 'string', enum: ['true', 'false'] }],
107+
},
108+
gifAttribution: {
109+
oneOf: [
110+
{ type: 'integer', enum: [0, 1, 2] },
111+
{ type: 'string', enum: ['0', '1', '2'] },
112+
],
113+
},
105114
delay: {
106115
type: 'integer',
107116
description: 'Enter a value in milliseconds',

0 commit comments

Comments
 (0)