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:
#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.
Is your feature request related to a problem? Please describe.
The
typescript-axiosgenerator currently emits this development dependency:TypeScript 6 is stable, but generated clients cannot declare compatibility with it. This blocks projects that use the generated
package.jsonfrom upgrading to TypeScript 6 without maintaining a local template override.The current template is:
modules/openapi-generator/src/main/resources/typescript-axios/package.mustacheDescribe the solution you would like
Update the TypeScript range generated by
typescript-axiosto include TypeScript 6, for example: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.0The generator previously added TypeScript 5 support in #18674:
#18674
Our generated client compiles with TypeScript 6. The generated
tsconfig.jsonstill contains the deprecatedmoduleResolution: "node"setting; this remains accepted by TypeScript 6 but will need a separate modernization before TypeScript 7, where that resolver is removed.