Skip to content

Commit

Permalink
Regression: Endpoint types with Ajv Coercing data types (#25644)
Browse files Browse the repository at this point in the history
  • Loading branch information
albuquerquefabio authored May 27, 2022
1 parent 7dd89fc commit 78e57f5
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }>;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Ajv from 'ajv';

const ajv = new Ajv();
const ajv = new Ajv({ coerceTypes: true });

export type ChannelsHistoryProps = {
roomId: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<
{
Expand Down
2 changes: 1 addition & 1 deletion packages/rest-typings/src/v1/dm/DmFileProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<
(
Expand Down
2 changes: 1 addition & 1 deletion packages/rest-typings/src/v1/dm/DmMembersProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<
(
Expand Down
2 changes: 1 addition & 1 deletion packages/rest-typings/src/v1/dm/DmMessagesProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }>;

Expand Down

0 comments on commit 78e57f5

Please sign in to comment.