From 4863b1b2c97dc980004a22209721408869e0af8b Mon Sep 17 00:00:00 2001 From: sebaszm <45654185+sebaszm@users.noreply.github.com> Date: Fri, 20 Sep 2024 11:26:34 +0200 Subject: [PATCH] [JsonGen] Amend JSON metadata object capitalization (#124) (#126) Co-authored-by: MFransen69 <39826971+MFransen69@users.noreply.github.com> --- JsonGenerator/source/json_loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JsonGenerator/source/json_loader.py b/JsonGenerator/source/json_loader.py index 60fda92..d674ef6 100644 --- a/JsonGenerator/source/json_loader.py +++ b/JsonGenerator/source/json_loader.py @@ -556,7 +556,7 @@ def cpp_name(self): if self.is_renamed: return super().cpp_name elif isinstance(self.parent, JsonMethod): - return self.parent.actual_name.capitalize() + super().cpp_name + return self.parent.actual_name[0].upper() + self.parent.actual_name[1:] + super().cpp_name elif isinstance(self.parent, JsonArray): return self.parent.cpp_name else: