Skip to content

Commit b6067a1

Browse files
committed
Merge pull request #1 from Thermeon/feature/ref_strings
Fix $ref strings treated as objects by JSONEditor
2 parents 4a39392 + 2541dfb commit b6067a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/javascript/view/MainView.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ SwaggerUi.Views.MainView = Backbone.View.extend({
7474
// is there any valid case were it should not be added ?
7575
var def;
7676
for(def in this.model.definitions){
77-
this.model.definitions[def].type = 'object';
77+
if (this.model.definitions[def].type === null){
78+
this.model.definitions[def].type = 'object';
79+
}
7880
}
7981

8082
},

0 commit comments

Comments
 (0)