Skip to content

Commit 00bc06a

Browse files
committed
Merge branch 'philippone-master'
2 parents 448af69 + 2a6e817 commit 00bc06a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/resolver.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,10 @@ Resolver.prototype.resolveTo = function (root, property, resolutionTable, locati
652652
} else {
653653
if(property && property.properties) {
654654
var name = this.uniqueName('inline_model');
655+
if (property.title) {
656+
name = this.uniqueName(property.title);
657+
}
658+
delete property.title;
655659
this.spec.definitions[name] = _.cloneDeep(property);
656660
property['$ref'] = '#/definitions/' + name;
657661
delete property.type;

0 commit comments

Comments
 (0)