Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(openapi): publish integer types for call link and product paging

Yudhi Armyndharise4334f500063
diff --git a/src/modules/call/dto/create-call-link.dto.ts b/src/modules/call/dto/create-call-link.dto.ts
index d847e1f73..22012908a 100644
--- a/src/modules/call/dto/create-call-link.dto.ts
+++ b/src/modules/call/dto/create-call-link.dto.ts
@@ -20,6 +20,7 @@ export class CreateCallLinkDto {
'whatsapp-web.js generates an event-linked call and has no notion of "no start time", so a ' +
'link for right now is `Date.now()` rather than an omitted field.',
example: 1800000000000,
+ type: 'integer',
minimum: 1,
maximum: MAX_DATE_MS,
})
diff --git a/src/modules/catalog/dto/send-product.dto.ts b/src/modules/catalog/dto/send-product.dto.ts
index 75d9f4037..80ca9d617 100644
--- a/src/modules/catalog/dto/send-product.dto.ts
+++ b/src/modules/catalog/dto/send-product.dto.ts
@@ -30,14 +30,14 @@ export class SendProductDto {
}
export class ProductQueryDto {
- @ApiPropertyOptional({ description: 'Result page (1-based).', example: 1, minimum: 1 })
+ @ApiPropertyOptional({ description: 'Result page (1-based).', example: 1, type: 'integer', minimum: 1 })
@IsOptional()
@Type(() => Number)
@IsInt()
@Min(1)
page?: number = 1;
- @ApiPropertyOptional({ description: 'Page size.', example: 20, minimum: 1 })
+ @ApiPropertyOptional({ description: 'Page size.', example: 20, type: 'integer', minimum: 1 })
@IsOptional()
@Type(() => Number)
@IsInt()