Skip to content

Commit

Permalink
[JsonGen] Amend JSON metadata object capitalization (#124) (#126)
Browse files Browse the repository at this point in the history
Co-authored-by: MFransen69 <[email protected]>
  • Loading branch information
sebaszm and MFransen69 authored Sep 20, 2024
1 parent 3c71144 commit 4863b1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JsonGenerator/source/json_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4863b1b

Please sign in to comment.