From 356fd2e165e4195d441b25b9f2c67b4acd498346 Mon Sep 17 00:00:00 2001 From: Shaw Young Date: Mon, 2 Dec 2024 09:08:22 +0000 Subject: [PATCH] Update CodeGen.cs --- lang/csharp/src/apache/main/CodeGen/CodeGen.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/lang/csharp/src/apache/main/CodeGen/CodeGen.cs b/lang/csharp/src/apache/main/CodeGen/CodeGen.cs index 0ff5037a079..75614711784 100644 --- a/lang/csharp/src/apache/main/CodeGen/CodeGen.cs +++ b/lang/csharp/src/apache/main/CodeGen/CodeGen.cs @@ -1287,13 +1287,10 @@ private static string ReplaceMappedNamespacesInSchemaTypes(string schemaJson, IE if (string.IsNullOrWhiteSpace(schemaJson) || namespaceMapping == null) return schemaJson; - // Parse the JSON schema into a JToken object var schemaToken = JToken.Parse(schemaJson); - // Recursively update the namespaces in the schema UpdateNamespacesInJToken(schemaToken, namespaceMapping); - // Convert the updated schema back to a JSON string return schemaToken.ToString(Formatting.Indented); }