mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-03-23 01:39:12 +00:00
fix java okhttp (array of enum property)
This commit is contained in:
@@ -1695,7 +1695,7 @@ public class DefaultCodegen {
|
||||
|
||||
// set default value for variable with inner enum
|
||||
if (property.defaultValue != null) {
|
||||
property.defaultValue = property.defaultValue.replace(property.items.baseType, toEnumName(property.items));
|
||||
property.defaultValue = property.defaultValue.replace(baseItem.baseType, toEnumName(baseItem));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user