Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[REQ][typescript-axios] Add TypeScript 6 to generated package.json peer range

オープン 初心者向け
#24,830 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
86/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
tooling

調査の方向性

modules/openapi-generator/src/main/resources/typescript-axios/package.mustache を更新し、生成された package.json の TypeScript peer range に ^6.0 が含まれるようにします。まず既存の dependency エントリを確認し、次に生成された TypeScript-Axios samples を TypeScript 6 で実行します。生成されたクライアントが拡張された range を宣言し、TypeScript 6 で正常にコンパイルできれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Is your feature request related to a problem? Please describe.

The typescript-axios generator currently emits this development dependency:

"typescript": "^4.0 || ^5.0"

TypeScript 6 is stable, but generated clients cannot declare compatibility with it. This blocks projects that use the generated package.json from upgrading to TypeScript 6 without maintaining a local template override.

The current template is:
modules/openapi-generator/src/main/resources/typescript-axios/package.mustache

Describe the solution you would like

Update the TypeScript range generated by typescript-axios to include TypeScript 6, for example:

"typescript": "^4.0 || ^5.0 || ^6.0"

Please also run the generated TypeScript-Axios samples using TypeScript 6 to confirm compatibility.

Describe alternatives you have considered

We can maintain a local override of package.mustache, but this duplicates an upstream template and must be kept aligned with every OpenAPI Generator upgrade.

We can also override the generated dependency after code generation, but this does not solve the issue for other TypeScript-Axios users.

Additional context

OpenAPI Generator version: 7.25.0

The generator previously added TypeScript 5 support in #18674:
https://github.com/OpenAPITools/openapi-generator/pull/18674

Our generated client compiles with TypeScript 6. The generated tsconfig.json still contains the deprecated moduleResolution: "node" setting; this remains accepted by TypeScript 6 but will need a separate modernization before TypeScript 7, where that resolver is removed.

主要言語
Java
スター
26.8k
フォーク
7.7k
平均マージ
3日 21時間
マージ済み PR(30日)
117

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

OpenAPITools/openapi-generator のほかの issue

OpenAPITools/openapi-generator の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。