regression bug fix

This commit is contained in:
unknown
2015-09-16 10:44:57 +02:00
parent ea2cefa46e
commit 504095e10e

View File

@@ -74,7 +74,7 @@ SwaggerUi.Views.MainView = Backbone.View.extend({
// is there any valid case were it should not be added ? // is there any valid case were it should not be added ?
var def; var def;
for(def in this.model.definitions){ for(def in this.model.definitions){
if (this.model.definitions[def].type === null){ if (!this.model.definitions[def].type){
this.model.definitions[def].type = 'object'; this.model.definitions[def].type = 'object';
} }
} }