Merge pull request #1 from Thermeon/feature/ref_strings
Fix $ref strings treated as objects by JSONEditor
This commit is contained in:
@@ -74,7 +74,9 @@ 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){
|
||||||
this.model.definitions[def].type = 'object';
|
if (this.model.definitions[def].type === null){
|
||||||
|
this.model.definitions[def].type = 'object';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user