Skip to content

Commit d83f1a6

Browse files
authored
Merge pull request #11046 from swagger-api/kebab-case-name
added kebab case on model property naming type enumeration
2 parents 1920284 + aa0554b commit d83f1a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/swagger-codegen/src/main/java/io/swagger/codegen/v3/CodegenConstants.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ public class CodegenConstants {
161161
public static final String DOTNET_FRAMEWORK = "targetFramework";
162162
public static final String DOTNET_FRAMEWORK_DESC = "The target .NET framework version.";
163163

164-
public static enum MODEL_PROPERTY_NAMING_TYPE {camelCase, PascalCase, snake_case, original}
165-
public static enum ENUM_PROPERTY_NAMING_TYPE {camelCase, PascalCase, snake_case, original, UPPERCASE}
164+
public static enum MODEL_PROPERTY_NAMING_TYPE {camelCase, PascalCase, snake_case, kebab_case, original}
165+
public static enum ENUM_PROPERTY_NAMING_TYPE {camelCase, PascalCase, snake_case, kebab_case, original, UPPERCASE}
166166

167167
public static final String ENUM_PROPERTY_NAMING = "enumPropertyNaming";
168168
public static final String ENUM_PROPERTY_NAMING_DESC = "Naming convention for enum properties: 'camelCase', 'PascalCase', 'snake_case', 'UPPERCASE', and 'original'";

0 commit comments

Comments
 (0)