#7201: Take the modelPropertyNaming property into account again (#7202)

This commit is contained in:
Jean-François Côté 2017-12-21 05:28:30 -05:00 committed by William Cheng
parent c1cbf32d17
commit 572bafe2a7

View File

@ -165,9 +165,7 @@ public abstract class AbstractTypeScriptClientCodegen extends DefaultCodegen imp
return name; return name;
} }
// camelize (lower first character) the variable name name = getNameUsingModelPropertyNaming(name);
// pet_id => petId
name = camelize(name, true);
// for reserved word or word starting with number, append _ // for reserved word or word starting with number, append _
if (isReservedWord(name) || name.matches("^\\d.*")) { if (isReservedWord(name) || name.matches("^\\d.*")) {