Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

HttpInputParameters.readTimeOut typed as string — server expects integer (ms)

未关闭 适合新手
#138 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
91/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
冷清
技术栈
typescript
领域
api

调研方向

从 src/open-api/types.ts:156 开始,将 readTimeOut 与上一行中类型定义正确的 connectionTimeOut 字段进行比较。修改声明,使其接受数值型毫秒值,然后验证 TypeScript 检查通过,并确认公共类型与服务器的 Integer 字段一致。

由索引模型根据 Issue 内容生成。

描述

bug

Summary

HttpInputParameters.readTimeOut is typed as string in src/open-api/types.ts:156.
The server's HttpTask.Input.readTimeOut is Integer (milliseconds). The sibling field
connectionTimeOut is correctly typed as number. The inconsistency is a bug.

Server baseline

Conductor 3.32.0-rc.9

Evidence

Static:

// src/open-api/types.ts:155-156
connectionTimeOut?: number;   // ✓ correct
readTimeOut?: string;         // ✗ should be number

Server:

// http-task/.../HttpTask.java:275
private Integer readTimeOut = 3000;

Live (2026-07-16): Server accepts both readTimeOut: 3000 (integer) and
readTimeOut: "3000" (string) due to Jackson coercion. However, the TypeScript type
is still wrong — passing a number for readTimeOut is a compile-time error with the
current type definition.

Impact

TypeScript users who pass readTimeOut: 5000 (the natural form) get a type error and
must write readTimeOut: "5000" (string), which is semantically confusing and diverges
from connectionTimeOut: 5000 (number).

Proposed fix

// src/open-api/types.ts:156
readTimeOut?: number;   // was: string

Related

Discovered during systematic SDK audit against Conductor OSS 3.32.0-rc.9.

主要语言
TypeScript
星标
58
派生
20
平均合并
6 天 5 小时
30 天内合并 PR
3

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

conductor-oss/javascript-sdk 的其他 Issue

查看 conductor-oss/javascript-sdk 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。