Merge pull request #1 from Thermeon/feature/ref_strings

Fix $ref strings treated as objects by JSONEditor
This commit is contained in:
Laurent Lepinay
2015-09-09 15:47:02 +02:00

View File

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