forked from loafle/openapi-generator-original
Compare commits
1 Commits
master
...
fix-enum-s
Author | SHA1 | Date | |
---|---|---|---|
|
bea6af7f37 |
@ -5306,7 +5306,7 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
if (var.defaultValue != null) {
|
if (var.defaultValue != null) {
|
||||||
String enumName = null;
|
String enumName = null;
|
||||||
final String enumDefaultValue;
|
final String enumDefaultValue;
|
||||||
if ("string".equalsIgnoreCase(dataType)) {
|
if (typeMapping.get("string").equalsIgnoreCase(dataType)) {
|
||||||
enumDefaultValue = toEnumValue(var.defaultValue, dataType);
|
enumDefaultValue = toEnumValue(var.defaultValue, dataType);
|
||||||
} else {
|
} else {
|
||||||
enumDefaultValue = var.defaultValue;
|
enumDefaultValue = var.defaultValue;
|
||||||
|
@ -158,6 +158,8 @@ public class NimClientCodegen extends DefaultCodegen implements CodegenConfig {
|
|||||||
typeMapping.put("DateTime", "string");
|
typeMapping.put("DateTime", "string");
|
||||||
typeMapping.put("password", "string");
|
typeMapping.put("password", "string");
|
||||||
typeMapping.put("file", "string");
|
typeMapping.put("file", "string");
|
||||||
|
typeMapping.put("string", "string");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPackageName(String packageName) {
|
public void setPackageName(String packageName) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user