mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-03-16 20:19:01 +00:00
add a case to handle space in name
This commit is contained in:
@@ -1468,6 +1468,9 @@ public class DefaultCodegen {
|
||||
|
||||
// input-name => input_name
|
||||
name = name.replaceAll("-", "_");
|
||||
|
||||
// input name and age => input_name_and_age
|
||||
name = name.replaceAll(" ", "_");
|
||||
|
||||
// remove everything else other than word, number and _
|
||||
// $php_variable => php_variable
|
||||
|
||||
Reference in New Issue
Block a user