mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-05-12 15:54:17 +00:00
Merge pull request #3965 from ButterflyNetwork/swift-enum
[Swift] Add / as enum separator
This commit is contained in:
@@ -396,8 +396,8 @@ public class SwiftCodegen extends DefaultCodegen implements CodegenConfig {
|
||||
return value;
|
||||
}
|
||||
|
||||
char[] separators = {'-', '_', ' ', ':'};
|
||||
return WordUtils.capitalizeFully(StringUtils.lowerCase(value), separators).replaceAll("[-_ :]", "");
|
||||
char[] separators = {'-', '_', ' ', ':', '/'};
|
||||
return WordUtils.capitalizeFully(StringUtils.lowerCase(value), separators).replaceAll("[-_ :/]", "");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user