Skip to content

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

Description

@pmverma

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions