mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-11-15 08:03:42 +00:00
* Javascript Generator: small sanitization changes Sanitize module name, do not sanitize description. If we set the project name to "@myorg/mypackage" (scoped package[1]), running `npm test` will fail, as it will generate faulty code due to the module name including the '@' symbol, which is not a valid JS identifier. Additionally, we don't need to sanitize the description - spaces and special characters are fine. We just need to make sure they are escaped, which we're already doing by invoking escapeText() on line 329 [1]anitize module name, do not sanitize description * update JS samples