Andrea Campanella

Fixed title field creates empty json objects

Change-Id: I1ccecacde9c5538b29ff219279538c8ea98beaa2
...@@ -2988,7 +2988,7 @@ function schemaToHTML(name, schema, models, modelPropertyMacro) { ...@@ -2988,7 +2988,7 @@ function schemaToHTML(name, schema, models, modelPropertyMacro) {
2988 2988
2989 if (schema.$ref) { 2989 if (schema.$ref) {
2990 modelName = schema.title || Helpers.simpleRef(schema.$ref); 2990 modelName = schema.title || Helpers.simpleRef(schema.$ref);
2991 - model = models[modelName]; 2991 + model = models[Helpers.simpleRef(schema.$ref)];
2992 } else if (_.isUndefined(name)) { 2992 } else if (_.isUndefined(name)) {
2993 modelName = schema.title || 'Inline Model ' + (++inlineModels); 2993 modelName = schema.title || 'Inline Model ' + (++inlineModels);
2994 model = {definition: schema}; 2994 model = {definition: schema};
......