You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's a bug, easy to fix. I suggest adding this to the languages/ObjClientCodegen.java:
@OverridepublicStringtoVarName(Stringname) {
// replace - with _ e.g. created-at => created_atname = name.replaceAll("-", "_");
// if it's all uppper case, do nothingif (name.matches("^[A-Z_]*$"))
returnname;
// camelize (lower first character) the variable name// pet_id => petIdname = camelize(name, true);
// for reserved word or word starting with number, append _if(reservedWords.contains(name) || name.matches("^\\d.*"))
name = escapeReservedWord(name);
returnname;
}
This fragment of config
Generates this code in .h file
Note hyphens in method signature.
The text was updated successfully, but these errors were encountered: