From fd101fbc413a64c2f2c513b9be3f5a5c5b7de76b Mon Sep 17 00:00:00 2001 From: sebaszm Date: Fri, 20 Sep 2024 10:26:07 +0200 Subject: [PATCH] [JsonGen] Amend JSON metadata object capitalization --- 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 8c83e1c..ac50c11 100644 --- a/JsonGenerator/source/json_loader.py +++ b/JsonGenerator/source/json_loader.py @@ -617,7 +617,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: