mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-19 03:57:08 +00:00
Merge pull request #3494 from osher/patch-1
NodeJS generator - Harken to the the warnings ...
This commit is contained in:
@@ -320,4 +320,14 @@ public class NodeJSServerCodegen extends DefaultCodegen implements CodegenConfig
|
|||||||
return removeNonNameElementToCamelCase(name, "[-:;#]");
|
return removeNonNameElementToCamelCase(name, "[-:;#]");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String escapeUnsafeCharacters(String input) {
|
||||||
|
return input.replace("*/", "*_/").replace("/*", "/_*");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String escapeQuotationMark(String input) {
|
||||||
|
// remove " to avoid code injection
|
||||||
|
return input.replace("\"", "");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user