Examples of errors detected by the V6059 diagnostic
V6059. Odd use of special character in regular expression. Possibly, it was intended to be escaped.
OpenAPI Generator
V6059 An odd use of a special character in a regular expression. Possibly, it was intended to be escaped. AbstractJuliaCodegen.java 313
@Override
public String toModelName(final String name) {
// obtain the name from modelNameMapping directly if provided
if (modelNameMapping.containsKey(name)) {
return modelNameMapping.get(name);
}
String result = sanitizeName(name);
// remove dollar sign
result = result.replaceAll("$", ""); // <=
....
}