Skip to content

Commit

Permalink
Fix handling of field renaming when field has same name as struct
Browse files Browse the repository at this point in the history
  • Loading branch information
MingweiSamuel committed Jun 16, 2024
1 parent 4d6e775 commit 7a0fafa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion srcgen/dotUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function normalizePropName(propName, schemaName, value) {
const tokens = propName.split(/[_-]/g);
let name = tokens.map(capitalize).join('');
if (name === schemaName)
name += stringifyType(value);
name += '_';
return name;
}

Expand Down

0 comments on commit 7a0fafa

Please sign in to comment.