We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8b89683 + d2bddba commit 261c90dCopy full SHA for 261c90d
src/main/resources/handlebars/htmlDocs2/js_jsonschemaview.mustache
@@ -122,6 +122,11 @@ var JSONSchemaView = (function () {
122
this.options = options;
123
this.isCollapsed = open <= 0;
124
125
+ if (this.schema.type == undefined && this.schema.$ref) {
126
+ const elements = this.schema.$ref.split('/');
127
+ this.schema = defs[elements.pop()];
128
+ }
129
+
130
// if schema is an empty object which means any JOSN
131
this.isAny = typeof schema === 'object' && !Array.isArray(schema) && !Object.keys(schema).filter(function (k) {
132
return ['title', 'description'].indexOf(k) === -1;
0 commit comments