Skip to content

Commit

Permalink
Update CodeGen.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Shawson committed Dec 2, 2024
1 parent b910a5b commit 356fd2e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lang/csharp/src/apache/main/CodeGen/CodeGen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 356fd2e

Please sign in to comment.