escape unsafe characters/quotes in elixir generator (#4676)

This commit is contained in:
wing328 2017-01-30 21:24:21 +08:00 committed by GitHub
parent 2cffa097f0
commit ee857d1be3

View File

@ -374,4 +374,15 @@ public class ElixirClientCodegen extends DefaultCodegen implements CodegenConfig
this.replacedPathName = replacedPathName; this.replacedPathName = replacedPathName;
} }
} }
}
@Override
public String escapeQuotationMark(String input) {
return input.replace("\"", "");
}
@Override
public String escapeUnsafeCharacters(String input) {
// no need to escape as Elixir does not support multi-line comments
return input;
}
}