From 07e5a674db3722f8c8cc3ae2adb8ba3fe2f8c6f3 Mon Sep 17 00:00:00 2001 From: Simon Podlipsky Date: Mon, 24 Mar 2025 14:19:58 +0100 Subject: [PATCH] fix: escape operationIds before outputting them (#14475) --- .../codegen/languages/TypeScriptFetchClientCodegen.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptFetchClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptFetchClientCodegen.java index 0bcacadf15a..ab15af74c3c 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptFetchClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptFetchClientCodegen.java @@ -687,13 +687,14 @@ public class TypeScriptFetchClientCodegen extends AbstractTypeScriptClientCodege } this.addOperationModelImportInformation(operations); + this.escapeOperationIds(operations); this.updateOperationParameterForEnum(operations); if (this.getSagasAndRecords()) { this.updateOperationParameterForSagaAndRecords(operations); } this.addOperationObjectResponseInformation(operations); this.addOperationPrefixParameterInterfacesInformation(operations); - this.escapeOperationIds(operations); + return operations; }