added property check

This commit is contained in:
Tony Tam 2015-10-22 22:39:09 -07:00
parent 91afec43a6
commit a6e4203cd5

View File

@ -204,7 +204,7 @@ public class InlineModelResolver {
Map<String, Model> modelsToAdd = new HashMap<String, Model>();
for (String key : properties.keySet()) {
Property property = properties.get(key);
if (property instanceof ObjectProperty) {
if (property instanceof ObjectProperty && ((ObjectProperty)property).getProperties().size() > 0) {
String modelName = uniqueName(path + "_" + key);
ObjectProperty op = (ObjectProperty) property;