Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2178,6 +2178,17 @@ public CodegenProperty fromProperty(String name, Schema p) {
// property.baseType = getSimpleRef(p.get$ref());
//}
// --END of revision

// set is enum to true when a model is enum and type is non-primitive.
if (StringUtils.isNotBlank(p.get$ref()) && globalSchemas != null) {
Schema ref = globalSchemas.get(ModelUtils.getSimpleRef(p.get$ref()));
if (ref != null) {
if (ref.getEnum() != null) {
property.isEnum = true;
}
}
}

setNonArrayMapProperty(property, type);
}

Expand Down