Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
better code formatting
  • Loading branch information
zhemant committed Jan 7, 2019
commit cba3a43f4e8424b725cde27a56e6e0675a6d8760
Original file line number Diff line number Diff line change
Expand Up @@ -2181,12 +2181,12 @@ public CodegenProperty fromProperty(String name, Schema p) {

// 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;
}
}
Schema ref = globalSchemas.get(ModelUtils.getSimpleRef(p.get$ref()));
if (ref != null) {
if (ref.getEnum() != null) {
property.isEnum = true;
}
}
}

setNonArrayMapProperty(property, type);
Expand Down