mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-03-18 13:49:14 +00:00
Merge 'master' branch of 'swagger-codegen' into 'openapi-generator' (#327)
This commit is contained in:
@@ -472,6 +472,9 @@ public abstract class AbstractKotlinCodegen extends DefaultCodegen implements Co
|
||||
String modifiedName = name.replaceAll("\\.", "");
|
||||
modifiedName = sanitizeKotlinSpecificNames(modifiedName);
|
||||
|
||||
// Camelize name of nested properties
|
||||
modifiedName = camelize(modifiedName);
|
||||
|
||||
if (reservedWords.contains(modifiedName)) {
|
||||
modifiedName = escapeReservedWord(modifiedName);
|
||||
}
|
||||
@@ -479,6 +482,12 @@ public abstract class AbstractKotlinCodegen extends DefaultCodegen implements Co
|
||||
return titleCase(modifiedName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toModelFilename(String name) {
|
||||
// Should be the same as the model name
|
||||
return toModelName(name);
|
||||
}
|
||||
|
||||
/**
|
||||
* Provides a strongly typed declaration for simple arrays of some type and arrays of arrays of some type.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user