regression bug fix
This commit is contained in:
@@ -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';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user