From 1be3f216c7853fb87d49ab8ea5af7e1c3d8f0f0b Mon Sep 17 00:00:00 2001 From: Apeksha_2022 <70309060+Apeksha9389@users.noreply.github.com> Date: Thu, 8 Oct 2026 19:07:10 +0530 Subject: [PATCH 1/2] fix: type HttpInputParameters.readTimeOut as number --- src/open-api/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/open-api/types.ts b/src/open-api/types.ts index 4248b437..fe568140 100644 --- a/src/open-api/types.ts +++ b/src/open-api/types.ts @@ -155,7 +155,7 @@ export interface HttpInputParameters { headers?: Record; body?: unknown; connectionTimeOut?: number; - readTimeOut?: string; + readTimeOut?: number; } export interface HttpTaskDef extends CommonTaskDef { From 29c01db28ae749e14b176e31c1aa54460b3bcfb7 Mon Sep 17 00:00:00 2001 From: Apeksha_2022 <70309060+Apeksha9389@users.noreply.github.com> Date: Thu, 8 Oct 2026 19:08:19 +0530 Subject: [PATCH 2/2] test: cover numeric HTTP timeouts --- src/sdk/builders/tasks/__tests__/factory.test.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/sdk/builders/tasks/__tests__/factory.test.ts b/src/sdk/builders/tasks/__tests__/factory.test.ts index fffbb6b4..90120761 100644 --- a/src/sdk/builders/tasks/__tests__/factory.test.ts +++ b/src/sdk/builders/tasks/__tests__/factory.test.ts @@ -184,6 +184,16 @@ describe("httpTask", () => { optional: true, }); }); + + it("Should accept numeric connection and read timeouts", () => { + const httpTaskObj = httpTask("testHttp", { + uri: "https://example.com", + method: "GET", + connectionTimeOut: 3000, + readTimeOut: 5000, + }); + expect(httpTaskObj.inputParameters.http_request.readTimeOut).toBe(5000); + }); }); describe("inlineTask", () => {