From 62e179aa194b4bd53d70bc12d0fa953c43f0f5c4 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Tue, 10 Feb 2026 17:33:34 +0800 Subject: [PATCH 1/2] update axios to newer versions --- .../codegen/languages/TypeScriptAxiosClientCodegen.java | 2 +- samples/client/echo_api/typescript-axios/build/package.json | 2 +- .../petstore/typescript-axios/builds/es6-target/package.json | 2 +- .../typescript-axios/builds/with-complex-headers/package.json | 2 +- .../with-npm-version-and-separate-models-and-api/package.json | 2 +- .../typescript-axios/builds/with-npm-version/package.json | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAxiosClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAxiosClientCodegen.java index 4551698f9fce..6898d3d7ccfd 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAxiosClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAxiosClientCodegen.java @@ -51,7 +51,7 @@ public class TypeScriptAxiosClientCodegen extends AbstractTypeScriptClientCodege public static final String IMPORT_FILE_EXTENSION_SWITCH_DESC = "File extension to use with relative imports. Set it to '.js' or '.mjs' when using [ESM](https://nodejs.org/api/esm.html)."; public static final String USE_SQUARE_BRACKETS_IN_ARRAY_NAMES = "useSquareBracketsInArrayNames"; public static final String AXIOS_VERSION = "axiosVersion"; - public static final String DEFAULT_AXIOS_VERSION = "^1.6.1"; + public static final String DEFAULT_AXIOS_VERSION = "^1.13.5"; public static final String WITH_AWSV4_SIGNATURE = "withAWSV4Signature"; @Getter @Setter diff --git a/samples/client/echo_api/typescript-axios/build/package.json b/samples/client/echo_api/typescript-axios/build/package.json index e5d6921f72aa..559eff6543a0 100644 --- a/samples/client/echo_api/typescript-axios/build/package.json +++ b/samples/client/echo_api/typescript-axios/build/package.json @@ -22,7 +22,7 @@ "prepare": "npm run build" }, "dependencies": { - "axios": "^1.6.1" + "axios": "^1.13.5" }, "devDependencies": { "@types/node": "12.11.5 - 12.20.42", diff --git a/samples/client/petstore/typescript-axios/builds/es6-target/package.json b/samples/client/petstore/typescript-axios/builds/es6-target/package.json index 2c6217f2d80a..ac7c88e9bf29 100644 --- a/samples/client/petstore/typescript-axios/builds/es6-target/package.json +++ b/samples/client/petstore/typescript-axios/builds/es6-target/package.json @@ -24,7 +24,7 @@ "prepare": "npm run build" }, "dependencies": { - "axios": "^1.6.1" + "axios": "^1.13.5" }, "devDependencies": { "@types/node": "12.11.5 - 12.20.42", diff --git a/samples/client/petstore/typescript-axios/builds/with-complex-headers/package.json b/samples/client/petstore/typescript-axios/builds/with-complex-headers/package.json index aa938d8bf659..9a7603f0affc 100644 --- a/samples/client/petstore/typescript-axios/builds/with-complex-headers/package.json +++ b/samples/client/petstore/typescript-axios/builds/with-complex-headers/package.json @@ -22,7 +22,7 @@ "prepare": "npm run build" }, "dependencies": { - "axios": "^1.6.1" + "axios": "^1.13.5" }, "devDependencies": { "@types/node": "12.11.5 - 12.20.42", diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/package.json b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/package.json index aa938d8bf659..9a7603f0affc 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/package.json +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/package.json @@ -22,7 +22,7 @@ "prepare": "npm run build" }, "dependencies": { - "axios": "^1.6.1" + "axios": "^1.13.5" }, "devDependencies": { "@types/node": "12.11.5 - 12.20.42", diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version/package.json b/samples/client/petstore/typescript-axios/builds/with-npm-version/package.json index aa938d8bf659..9a7603f0affc 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version/package.json +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version/package.json @@ -22,7 +22,7 @@ "prepare": "npm run build" }, "dependencies": { - "axios": "^1.6.1" + "axios": "^1.13.5" }, "devDependencies": { "@types/node": "12.11.5 - 12.20.42", From 36fa136ffa83d7ecf83e9ee281b7ce603a617b01 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Tue, 10 Feb 2026 18:15:43 +0800 Subject: [PATCH 2/2] update --- docs/generators/typescript-axios.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/generators/typescript-axios.md b/docs/generators/typescript-axios.md index 269c2b09587e..62f77eca1828 100644 --- a/docs/generators/typescript-axios.md +++ b/docs/generators/typescript-axios.md @@ -20,7 +20,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl | ------ | ----------- | ------ | ------- | |allowUnicodeIdentifiers|boolean, toggles whether unicode identifiers are allowed in names or not, default is false| |false| |apiPackage|package for generated api classes| |null| -|axiosVersion|Use this property to override the axios version in package.json| |^1.6.1| +|axiosVersion|Use this property to override the axios version in package.json| |^1.13.5| |disallowAdditionalPropertiesIfNotPresent|If false, the 'additionalProperties' implementation (set to true by default) is compliant with the OAS and JSON schema specifications. If true (default), keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.|
**false**
The 'additionalProperties' implementation is compliant with the OAS and JSON schema specifications.
**true**
Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.
|true| |ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true| |enumNameSuffix|Suffix that will be appended to all enum names.| |Enum|