typescript-axios: support TypeScript 6
Merged
FE
1mo ago+31+31+01234567890123456789-10-10-01234567890123456789
Summary
- Include TypeScript 6 in the generated
typescript-axiosdevelopment dependency range. - Add a regression test for the generated
package.json.
Closes #24830.
Validation
git diff --checkpassed.- Regenerated both CI-targeted TypeScript Axios samples locally with JDK 21 using
./bin/generate-samples.sh ./bin/configs/typescript-axios-echo-api.yaml ./bin/configs/typescript-axios-es6-target.yaml; both generators succeeded. - The targeted Maven regression test passed locally:
./mvnw -pl modules/openapi-generator -am -Dtest=TypeScriptAxiosClientCodegenTest -Dsurefire.failIfNoSpecifiedTests=false test(15 tests, 0 failures). The latest PR workflow runs are awaiting maintainer approval. - The issue reporter confirms their generated client compiles with TypeScript 6.
Prepared with AI assistance.
Summary by cubic
Makes the typescript-axios generated clients work with TypeScript 6. Closes #24830.
- Expands the generated devDependency range to
^4.0 || ^5.0 || ^6.0. - Removes the deprecated
moduleResolution: nodesetting from generated ES6tsconfigfiles so TypeScript 6 can use its compiler default. - Adds a regression test asserting the new dependency range and the omitted tsconfig setting, and regenerates the affected samples.