diff --git a/packages/rest-typings/src/v1/channels/ChannelsGetAllUserMentionsByChannelProps.ts b/packages/rest-typings/src/v1/channels/ChannelsGetAllUserMentionsByChannelProps.ts index 2e4d4b9d7197..8797fbf57a13 100644 --- a/packages/rest-typings/src/v1/channels/ChannelsGetAllUserMentionsByChannelProps.ts +++ b/packages/rest-typings/src/v1/channels/ChannelsGetAllUserMentionsByChannelProps.ts @@ -2,7 +2,7 @@ import Ajv from 'ajv'; import type { PaginatedRequest } from '../../helpers/PaginatedRequest'; -const ajv = new Ajv(); +const ajv = new Ajv({ coerceTypes: true }); export type ChannelsGetAllUserMentionsByChannelProps = PaginatedRequest<{ roomId: string }>; diff --git a/packages/rest-typings/src/v1/channels/ChannelsHistoryProps.ts b/packages/rest-typings/src/v1/channels/ChannelsHistoryProps.ts index 4539e1317a7a..3cf656e8db06 100644 --- a/packages/rest-typings/src/v1/channels/ChannelsHistoryProps.ts +++ b/packages/rest-typings/src/v1/channels/ChannelsHistoryProps.ts @@ -1,6 +1,6 @@ import Ajv from 'ajv'; -const ajv = new Ajv(); +const ajv = new Ajv({ coerceTypes: true }); export type ChannelsHistoryProps = { roomId: string; diff --git a/packages/rest-typings/src/v1/channels/ChannelsMessagesProps.ts b/packages/rest-typings/src/v1/channels/ChannelsMessagesProps.ts index 905874a34659..959b9a3ef357 100644 --- a/packages/rest-typings/src/v1/channels/ChannelsMessagesProps.ts +++ b/packages/rest-typings/src/v1/channels/ChannelsMessagesProps.ts @@ -3,7 +3,7 @@ import Ajv from 'ajv'; import type { IRoom } from '../../../../core-typings/dist'; import type { PaginatedRequest } from '../../helpers/PaginatedRequest'; -const ajv = new Ajv(); +const ajv = new Ajv({ coerceTypes: true }); export type ChannelsMessagesProps = PaginatedRequest< { diff --git a/packages/rest-typings/src/v1/dm/DmFileProps.ts b/packages/rest-typings/src/v1/dm/DmFileProps.ts index 9e2905c5acc4..fee5b45334f3 100644 --- a/packages/rest-typings/src/v1/dm/DmFileProps.ts +++ b/packages/rest-typings/src/v1/dm/DmFileProps.ts @@ -2,7 +2,7 @@ import Ajv from 'ajv'; import type { PaginatedRequest } from '../../helpers/PaginatedRequest'; -const ajv = new Ajv(); +const ajv = new Ajv({ coerceTypes: true }); export type DmFileProps = PaginatedRequest< ( diff --git a/packages/rest-typings/src/v1/dm/DmMembersProps.ts b/packages/rest-typings/src/v1/dm/DmMembersProps.ts index d70e02b06fa9..b5bdc99a9d7a 100644 --- a/packages/rest-typings/src/v1/dm/DmMembersProps.ts +++ b/packages/rest-typings/src/v1/dm/DmMembersProps.ts @@ -2,7 +2,7 @@ import Ajv from 'ajv'; import type { PaginatedRequest } from '../../helpers/PaginatedRequest'; -const ajv = new Ajv(); +const ajv = new Ajv({ coerceTypes: true }); export type DmMemberProps = PaginatedRequest< ( diff --git a/packages/rest-typings/src/v1/dm/DmMessagesProps.ts b/packages/rest-typings/src/v1/dm/DmMessagesProps.ts index 380bd042c13e..65144bc9036a 100644 --- a/packages/rest-typings/src/v1/dm/DmMessagesProps.ts +++ b/packages/rest-typings/src/v1/dm/DmMessagesProps.ts @@ -2,7 +2,7 @@ import Ajv from 'ajv'; import type { PaginatedRequest } from '../../helpers/PaginatedRequest'; -const ajv = new Ajv(); +const ajv = new Ajv({ coerceTypes: true }); export type DmMessagesProps = PaginatedRequest< ( diff --git a/packages/rest-typings/src/v1/integrations/IntegrationsHistoryProps.ts b/packages/rest-typings/src/v1/integrations/IntegrationsHistoryProps.ts index bac7d218fa99..8009d2c5f01a 100644 --- a/packages/rest-typings/src/v1/integrations/IntegrationsHistoryProps.ts +++ b/packages/rest-typings/src/v1/integrations/IntegrationsHistoryProps.ts @@ -2,7 +2,7 @@ import Ajv from 'ajv'; import type { PaginatedRequest } from '../../helpers/PaginatedRequest'; -const ajv = new Ajv(); +const ajv = new Ajv({ coerceTypes: true }); export type IntegrationsHistoryProps = PaginatedRequest<{ id: string }>;