forked from loafle/openapi-generator-original
Update DefaultCodegen.java
Replaced hardcoded "String" with property.items.baseType
This commit is contained in:
parent
c5dc070685
commit
13038d2a12
@ -683,9 +683,9 @@ public class DefaultCodegen {
|
|||||||
}
|
}
|
||||||
property.items = cp;
|
property.items = cp;
|
||||||
if (property.items.isEnum) {
|
if (property.items.isEnum) {
|
||||||
property.datatypeWithEnum = property.datatypeWithEnum.replace("String",
|
property.datatypeWithEnum = property.datatypeWithEnum.replace(property.items.baseType,
|
||||||
property.items.datatypeWithEnum);
|
property.items.datatypeWithEnum);
|
||||||
property.defaultValue = property.defaultValue.replace("String", property.items.datatypeWithEnum);
|
property.defaultValue = property.defaultValue.replace(property.items.baseType, property.items.datatypeWithEnum);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user