forked from loafle/openapi-generator-original
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